BACK TO TEMPLATES
workflowsany
AI PR Triage and Labeler Workflow
GitHub Actions workflow to automatically categorize, label, and estimate scope for new GitHub pull requests.
When to use this
Automate repository maintenance by classifying incoming Pull Requests by component and risk level.
The template
name: PR Auto Triage
on:
pull_request:
types: [opened]
jobs:
triage:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Label PR
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"How to use
Save to .github/workflows/pr-triage.yml.
Last verified 2026-07-26