mdelapenya / probot-require-label

A Probot that applies a label to issues and/or PRs that do not have any labels matching a regular expression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Require Label Bot

Downloads version Build Status

A Probot bot to make sure that a given label is added to specific issues when all other labels do not match a regex.

Setup

Add a .github/relabel.yml file to your repository and then run the bot against it.

If the config is empty or doesn't exist, the bot will not run.

# This example configuration will add the `needs-area` and `needs-type` labels
# to any new issues that do not have labels matching `area:.*` or `type:.*`.
# Once the issue has the `area:.....` label added the `needs-area` label will be 
# removed from the issue.
requiredLabels:
    # The missing label which will be added if the regex doesn't match any other labels
  - missingLabel: needs-area
    regex: area:.*
  - missingLabel: needs-type
    regex: type:.*

Contribute

If you have suggestions for how this bot could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

About

A Probot that applies a label to issues and/or PRs that do not have any labels matching a regular expression

License:MIT License


Languages

Language:TypeScript 99.3%Language:JavaScript 0.7%