Skip to content

Add labels to Pull Requests based on matched file patterns

License

Notifications You must be signed in to change notification settings

mithro/autolabeler

Repository files navigation

Probot Auto Labeler

Greenkeeper badge

A GitHub App built with probot that adds labels to Pull Requests based on matched file patterns.

Using

Configure by creating a .github/autolabeler.yml file with a YAML file in the format of label: file/path. Then add the Probot Auto Labeler Bot to your repository.

For example,

frontend: ["*.js", "*.css", "*.html"]
backend: ["/app", "*.rb"]
legal: ["LICENSE*", "NOTICES*"]
config: .github

Then if a pull request is opened that has scripts/widget.js modified, then the frontend label will be added.

Issues with Bot

If you are having issues with the GitHub app not working, please open an issue.

Setup

# Install dependencies
npm install

# Run the bot
npm start

See docs/deploy.md if you would like to run your own instance of this plugin.

About

Add labels to Pull Requests based on matched file patterns

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published