A GitHub Action to add or remove labels on PRs or issues
Required A comma-separated list of labels.
Example: bug,help-needed
Optional add or remove label
Default: add
Example: add
name: π Add Label
on: [pull_request_target]
permissions:
issues: write
pull-requests: write
jobs:
add-label:
name: π Add Label
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: okineadev/add-labels@v1.0.5
with:
labels: bug,help-needed
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}This GitHub Action is based on the gh tool without any other dependencies
Additionally, gh is pre-installed in GitHub Actions runners and pre-authenticated
If you like this project, consider supporting it by starring β it on GitHub, sharing it with your friends, or buying me a coffee β