Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mithro/autolabeler
Add labels to Pull Requests based on matched file patterns
https://github.com/mithro/autolabeler
github-pages probot-app
Last synced: about 1 month ago
JSON representation
Add labels to Pull Requests based on matched file patterns
- Host: GitHub
- URL: https://github.com/mithro/autolabeler
- Owner: mithro
- License: isc
- Created: 2017-07-20T22:37:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T18:33:10.000Z (about 1 year ago)
- Last Synced: 2024-08-02T17:35:28.429Z (3 months ago)
- Topics: github-pages, probot-app
- Language: JavaScript
- Size: 81.1 KB
- Stars: 103
- Watchers: 3
- Forks: 27
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Probot Auto Labeler
[![Greenkeeper badge](https://badges.greenkeeper.io/probot/autolabeler.svg)](https://greenkeeper.io/)
> A GitHub App built with [probot](https://github.com/probot/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](https://en.wikipedia.org/wiki/YAML) in the format of `label: file/path`. Then add the [Probot Auto Labeler Bot](https://github.com/apps/probot-autolabeler) to your repository.
For example,
```yaml
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](https://github.com/apps/probot-autolabeler), please [open an issue](https://github.com/probot/autolabeler/issues).
## Setup
```
# Install dependencies
npm install# Run the bot
npm start
```See [docs/deploy.md](docs/deploy.md) if you would like to run your own instance of this plugin.