1.0.0 • Published 4 years ago

@mdelapenya/github-codeowners-labeller v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

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

  1. Install the app.
  2. Create a codeowners-labeller.yml file in your repository, under the .github directory.
  3. Use your own labels as the keys in the YAML file.
  4. Use an array for paths to be added to a label. Pathname Format: glob
  5. Use the empty label (- "":) for exclusions. Paths here won't receive a label unless precedent labels apply.
  6. 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