klaasnicolaas/PR Labels Check
GitHub Action to validate labels on Pull Requests
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 10, 2026
- License
- Apache 2.0
Pinned Snippet
uses: klaasnicolaas/action-pr-labels@d9167db247c8e0a7909b45503ec356b0fe77e913 # v3.1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repo-token | Token for the repository. Defaults to the workflow GitHub token. | no | ${{ github.token }} |
| pr-number | Pull Request number | no | ${{ github.event.pull_request.number }} |
| valid-labels | List of labels that are valid | yes | — |
| invalid-labels | List of labels that are invalid | no | "" |
| post-comment | Post a comment on the PR with validation results. Updates the existing comment if one already exists. | no | false |
Outputs
| name | description |
|---|---|
| is-valid | Whether the PR labels passed validation (true/false) |
| valid-labels-found | JSON array of valid labels found on the PR |
| invalid-labels-found | JSON array of invalid labels found on the PR |