Skip to content

Latest commit

 

History

History
47 lines (41 loc) · 1.28 KB

labeling.md

File metadata and controls

47 lines (41 loc) · 1.28 KB

Labeling

Prow github actions expects the file .github/labels.yaml to be present for most labeling commands and jobs. All of the following examples can be placed simultaneously in the .github/labels.yaml file.

Area labels

area:
  - 'bug'
  - 'important'

With the command /area bug, the issue or PR will be labeled with area/bug

Kind labels

kind:
  - 'failing-test'
  - 'cleanup'

With the command /kind cleanup, the issue or PR will be labeled with kind/cleanup

Priority labels

priority:
  - 'low'
  - 'high'

With the command /priority low, the issue or PR will be labeled with priority/low

PR labels

source:
  - 'src/**'

If using the github actions/labeler PR labeler, any PR with a changed file that matches file globs found in .github/labels.yaml will be labeled. So, in this example, a PR with a changed file named src/some/sourcefile.js will be labeled with source. The Digital Ocean Glob Tool can be helpful when specifying file globs.

Note that the Github API will not return a leading slash for files found within the repository. So, for example, a root level readme file will appear as README.md.