๐ท๏ธ Action: PR Labeler
Automatically categorize Pull Requests based on modified file paths to maintain repository hygiene and streamline code reviews.
[!IMPORTANT] The PR Labeler surgically applies labels (e.g.,
Frontend,Backend,DevOps) to Pull Requests by evaluating path-matching rules defined in your repository. This ensures zero-overhead triage and absolute organizational consistency.
๐ Quick Start
Drop this snippet into your PR intelligence workflow:
steps:
- name: ๐ท๏ธ Triage PR
uses: carlos-camara/qa-hub-actions/pr-labeler@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: ".github/labeler.yml"
โ๏ธ Configuration
| Input | Description | Required | Default |
|---|---|---|---|
repo-token |
GitHub Token for applying labels. | No | ${{ github.token }} |
configuration-path |
Path to the YAML file defining labeling rules. | No | .github/labeler.yml |
sync-labels |
Remove labels when files no longer match rules. | No | true |
[View Full Wiki](https://carlos-camara.github.io/qa-hub-actions/actions/pr-labeler/)