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.
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.
Install the app through the GitHub Marketplace.
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 }}
- Every documented keyword.
- Multiple index labels: if the issue has both
bug
andfeature
label, it will get labeled as bothfixed
andimplemented
.
- Retroactively, as design.
- Multiple target labels. Example:
bug: ["fixed", "done"]
. This should be easy to do and it's up for grabs, feel free to submit a pull request making this happen. - Cross-repo references. I think it might be possible to develop if both repos have the app installed, but I'm not sure.
# Install dependencies
npm install
# Run typescript
npm run build
# Run the bot
npm start
Click here.
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.
BTC: 1LoGErFoNzE1gCA5fzk6A82nV6iJdKssSZ
ISC © 2019 Bruno Logerfo bruno@logerfo.tk (https://github.com/Logerfo/close-label)
The application icon is a modified version of a icon by Cole Bemis under the Creative Commons 3.0 License.