Skip to content
A GitHub action to add labels to Pull Request based on matched file patterns
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Use --is-ancestor for --no-ff merge Feb 15, 2019
src Use --is-ancestor for --no-ff merge Feb 15, 2019
.eslintrc.js Add eslint Feb 17, 2019
.gitignore Add .eslintcache Feb 17, 2019
.prettierrc First commit Feb 12, 2019
Dockerfile Remove unused comment Feb 19, 2019
README.md Add Features and TODO Feb 12, 2019
fuse.js First commit Feb 12, 2019
package.json Add eslint Feb 17, 2019
tsconfig.json First commit Feb 12, 2019
yarn.lock Add eslint Feb 17, 2019

README.md

auto-label

A GitHub action to add labels to Pull Request based on matched file patterns

Installation

To configure the action simply add the following lines to your .github/main.workflow workflow file:

workflow "auto-label" {
  on = "pull_request"
  resolves = ["Auto label"]
}

action "Auto label" {
  uses = "banyan/auto-label@master"
  secrets = ["GITHUB_TOKEN"]
}

And configure by creating .github/auto-label.json file. The format is label: rule:

{ [key: string]: string | string[] }

Pattern matching is following .gitignore spec using by node-ignore.

{
  "rules": {
    "frontend": ["*.js", "*.css", "*.html"],
    "backend": ["app/", "*.rb"],
    "ci": ".circleci",
  }
}

Features

TODO

  • Handle pagination of label (currently only handles 100)

License

MIT

You can’t perform that action at this time.