klaasnicolaas/PR Labels Check

GitHub Action to validate labels on Pull Requests

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 10, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: klaasnicolaas/action-pr-labels@d9167db247c8e0a7909b45503ec356b0fe77e913 # v3.1.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
repo-tokenToken for the repository. Defaults to the workflow GitHub token.no${{ github.token }}
pr-numberPull Request numberno${{ github.event.pull_request.number }}
valid-labelsList of labels that are validyes
invalid-labelsList of labels that are invalidno""
post-commentPost a comment on the PR with validation results. Updates the existing comment if one already exists.nofalse
namedescription
is-validWhether the PR labels passed validation (true/false)
valid-labels-foundJSON array of valid labels found on the PR
invalid-labels-foundJSON array of invalid labels found on the PR