Logerfo / close-label

A Probot app that applies a specific label to an issue closed through a pull request considering its current labels.
ISC License
5 stars 5 forks source link
actions label probot

Build Status Dependencies Status

close-label

A GitHub App built with Probot that applies a specific label to an issue closed through a pull request in the same repository considering its current labels.

Setup for using the bot in your repo

Create a file named .github/close-label.yml and fill it with whatever you like. Example:

bug: fixed
enhancement: implemented
feature: implemented

If a pull request gets merged and it has "fixes #42" in its body, if issue #42 has the label feature, the label implemented will be applied to it.

Using the bot as a GitHub app

Install the app through the GitHub Marketplace.

Using the bot as a GitHub Action

name: Close-label
on:
- pull-request

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
    - uses: logerfo/close-label@0.0.4
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}

It will work for

It will not work for

Setup for running the bot

# Install dependencies
npm install

# Run typescript
npm run build

# Run the bot
npm start

Changelog

Click here.

Contributing

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

For more, check out the Contributing Guide.

Donate

BTC: 1LoGErFoNzE1gCA5fzk6A82nV6iJdKssSZ

License

ISC © 2019 Bruno Logerfo bruno@logerfo.com.br (https://github.com/Logerfo/close-label)

Icon

The application icon is a modified version of a icon by Cole Bemis under the Creative Commons 3.0 License.