项目作者: mithro

项目描述 :
Add labels to Pull Requests based on matched file patterns
高级语言: JavaScript
项目地址: git://github.com/mithro/autolabeler.git
创建时间: 2017-07-20T22:37:34Z
项目社区:https://github.com/mithro/autolabeler

开源协议:ISC License

下载


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,

  1. frontend: ["*.js", "*.css", "*.html"]
  2. backend: ["/app", "*.rb"]
  3. legal: ["LICENSE*", "NOTICES*"]
  4. 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

  1. # Install dependencies
  2. npm install
  3. # Run the bot
  4. npm start

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