Quick Start¶
Get PR Auto-Labeler running in your repository in under 5 minutes.
Prerequisites¶
- GitHub repository with Actions enabled
- Permissions to create workflow files
No Installation Required
PR Auto-Labeler is a reusable workflow — no separate installation needed!
Step 1: Create Workflow File¶
Create a new file in your repository:
Add the following configuration:
- Trigger on PR open, update, or reopen
- Read access to repository contents
- Required: Write access to apply labels
- Reference the reusable workflow
- Enable specific rules (all disabled by default)
Step 2: Commit and Push¶
git add .github/workflows/pr-labeler.yml
git commit -m "Add PR auto-labeler workflow"
git push origin main
Step 3: Test It Out¶
Create a test pull request:
# Create a new branch
git checkout -b test-pr-labeler
# Make a change to a frontend file
echo "console.log('test');" >> src/App.tsx
# Commit and push
git add src/App.tsx
git commit -m "Test PR Auto-Labeler"
git push origin test-pr-labeler
Create the PR on GitHub. You should see:
- ✅ ui-change label applied
- ✅ test-missing label (if no test changes)
Create a PR with more than 500 lines changed, and it will get the large-pr label automatically.
- Go to Actions tab in your repository
- Find the "Auto Label PRs" workflow run
- Click on it to view execution logs
- See which rules were evaluated and which labels were applied
Verify It Works¶
After creating your test PR, check:
- Labels Applied — Look at your PR, labels should appear automatically
- Workflow Run — Go to Actions tab, verify the workflow completed successfully
- Debug Logs — Check workflow logs to see which rules were evaluated
Success Indicators
✅ Workflow status is green
✅ Labels appear on your PR
✅ Logs show Applied labels: [...]
Common Starting Configurations¶
Choose a preset based on your team's needs:
Troubleshooting¶
Labels Not Applied?
Check these common issues:
- ✅ Workflow file is in
.github/workflows/directory - ✅
permissions.pull-requests: writeis set - ✅
enabled_rulesis not empty (all rules disabled by default!) - ✅ GitHub Actions is enabled in repository settings
Still not working? Enable debug mode:
Then check the workflow logs for detailed output.
Workflow Not Running?
Verify the on: trigger is correct:
PRs from forks may require additional permissions configuration.
Next Steps¶
Now that you have the basics working:
- ⚙️ Learn All Configuration Options
- 📖 Explore All Available Rules
- 💡 See Real-World Examples
- ❓ View Troubleshooting Guide
Need Help?
If you run into issues:
- Check the Troubleshooting Guide
- Search GitHub Discussions
- Open an Issue with debug logs