1.0.0 • Published 6 years ago
@mdelapenya/github-codeowners-labeller v1.0.0
Probot: CODEOWNERS labeller
a GitHub App built with Probot that adds labels in Pull Requests based on contents of the
codeowners-labeller.ymlfile.
Usage
- Install the app.
- Create a
codeowners-labeller.ymlfile in your repository, under the.githubdirectory. - Use your own labels as the keys in the YAML file.
- Use an array for paths to be added to a label. Pathname Format: glob
- Use the empty label (
- "":) for exclusions. Paths here won't receive a label unless precedent labels apply. - Wait for new Pull Requests to be opened or synchronised.
An example codeowners-labeller.yml file is shown here:
---
- "label1":
- "*"
- "label2":
- "*"
- "":
- "*.pdf"
- "*.md"
- "LICENSE"
- "label4":
- "*.py"
- "*.rb"
- "label5":
- "*.py"
- "*.rb"
- "label6":
- "folder/**/*.md"
- "*.doc"
- "label7":
- "*.doc"
- "label-precedence":
- "README.md"1.0.0
6 years ago