https://github.com/fastruby/pr-unlabeler
Removes a label from a PR
https://github.com/fastruby/pr-unlabeler
Last synced: 4 months ago
JSON representation
Removes a label from a PR
- Host: GitHub
- URL: https://github.com/fastruby/pr-unlabeler
- Owner: fastruby
- License: mit
- Created: 2021-11-30T20:42:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-30T21:20:37.000Z (about 4 years ago)
- Last Synced: 2025-01-10T16:44:33.606Z (12 months ago)
- Language: TypeScript
- Size: 183 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PR Unlabeler
by FastRuby.io
# How to:
If you want to remove the `ready-to-qa` label when the `ready-to-merge` label is added to a PR:
```yml
# .github/workflows/unlabel.yml
name: Unlabel
on:
pull_request:
types: [labeled]
jobs:
create-review-app:
if: ${{ github.event.label.name == 'ready-to-merge' }}
runs-on: ubuntu-latest
steps:
- uses: fastruby/pr-unlabeler@v1
with:
label-to-remove: "ready-to-qa"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
# Configuration
## Inputs:
### `label-to-remove`
Any string that would match a valid label in the repo.
# How to contribute:
- Run `npm install` to get the needed dependencies
- Before committing changes, remember to rebuild the final .js file with `npm run prepare`
- Always commit the `dist/*` files
- After pushing the changes, make a new release in GitHub so you can target that version in the workflow config
> To show debug messages in the action's log, you can add a repo secret with the key `ACTIONS_STEP_DEBUG` and the value `true`
TODO:
- Only allow interactions of collaborators to trigger the actions to prevent abuse.
- Add linter/prettier