1.0.0 • Published 4 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.yml
file.
Usage
- Install the app.
- Create a
codeowners-labeller.yml
file in your repository, under the.github
directory. - 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
4 years ago