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:
- 'bug'
- 'important'
With the command /area bug
,
the issue or PR will be labeled with area/bug
kind:
- 'failing-test'
- 'cleanup'
With the command /kind cleanup
,
the issue or PR will be labeled with kind/cleanup
priority:
- 'low'
- 'high'
With the command /priority low
,
the issue or PR will be labeled with priority/low
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
.