answered from live GitHub & Hugging Face data
How can I effectively use labels to classify AI-generated pull requests in GitHub?
Use a small, fixed set of labels that record facts you can verify, such as which agent opened the pull request. Do not label based on guesses about whether code looks AI-written. GitHub has no built-in "AI-generated" flag, so your labels are only as reliable as the signal behind them.
Step 1: Create the label set
GitHub lets anyone with write access create labels. Anyone with triage access can apply and remove them. (GitHub Docs: Managing labels)
Use a prefix so the labels group together in the sidebar and in filters. A starting set:
| Label | Meaning | Who applies it |
|---|---|---|
ai:agent |
Opened by an autonomous coding agent | Automation |
ai:assisted |
Human wrote the PR with AI help | Reviewer |
ai:needs-human-review |
Agent output not yet reviewed by a person | Automation, removed by reviewer |
ai:verified-human |
A named human owns and reviewed the change | Reviewer |
Deleting a label removes it from every pull request that has it. (GitHub Docs) Rename labels carefully once they are in use.
Step 2: Automate the labels that come from facts
Apply ai:agent from the author or a commit trailer, not from a guess about the diff.
actions/labeleris the common option for path-based labels. It is ✅ actively maintained: last push 4 days ago, latest release v7.0.0 (July 2026), 65 contributors, 74 open issues, MIT license. (actions/labeler) It labels by changed files, so it can flag PRs that touch sensitive paths. It does not know who wrote the code. I could not read its README in this session, so check its configuration format there before you copy a config.- Workflow triggers. Workflows can run on pull request events. I did not read the
pull_requestsection of the events reference, so confirm the exact activity types there before you rely on them. (Events that trigger workflows)
Step 3: Check the community tools before you adopt one
I found several repositories that claim AI-PR labeling. None has enough evidence to adopt:
- ⚠️
JeremyDev87/leonidas: 2 stars, last push 280 days ago, slowing. It is an issue-to-PR tool, not a labeler. - ❌
TanishaMehta17/GitGenie: stale, last push 623 days ago, no license. - ❌
chandan0312/Ai-Github-Assistant: stale, last push 424 days ago, no license. - ⚠️
dnltz/claude-github-review: last push 131 days ago. It labels its own review comments as AI-generated. That is a useful pattern, but the project has no stars and no contributors.
I did not find a GitHub Docs page that says Copilot's coding agent applies labels to its pull requests. Do not assume it does. Check the pull requests it opens in your repository. (Copilot cloud agent docs)
How they relate
actions/labeler and the community tools solve different problems. actions/labeler sorts pull requests by files. The community tools try to sort by author or content. The first is maintained and verifiable. The second is not yet proven.
Recommendation
- Create the four labels above. Use a
ai:prefix. - Apply
ai:agentfrom the agent's identity or commit trailer. This is the only reliable signal. - Use
actions/labelerfor path-based rules, such as a label for changes to auth code. - Make
ai:verified-humana merge gate, enforced with branch protection or a required check.
Choose this approach if you want auditable labels. Choose a community tool only after you read its code and confirm it is maintained.
If your agents run git, githug writes commit trailers that name the agent and the accountable human. A workflow can read those trailers to apply ai:agent without guessing.