build: added action to automatically triage issues#838
Merged
Conversation
Contributor
Code Coverage
|
dkhawk
reviewed
Feb 2, 2026
.github/scripts/triage_pr.py
Outdated
|
|
||
| prompt = f""" | ||
| You are an expert software engineer and triage assistant. | ||
| Analyze the following Pull Request details and suggest appropriate labels for GitHub. |
Collaborator
There was a problem hiding this comment.
I thought this was about triaging issues. This reads like it is looking at pull requests. Perhaps I am not understanding some of the vocabulary here.
Collaborator
Author
There was a problem hiding this comment.
Yes, I was adding this to test it on the PR (the issues can't be tested until it is merged)
7692e85 to
012008a
Compare
012008a to
4aa1852
Compare
…s' into build/automatically-triage-issues
dkhawk
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces an automated triage system powered by the Gemini 2.5 Flash model. It automatically assesses the priority of new Issues and applies appropriate GitHub labels to streamline the project management process.
Changes
triage-issue.ymlwhich triggers on Issue events (opened,edited) andworkflow_dispatch.triage_issue.pyto handle the interaction with the Gemini API usingurllib.request(zero external dependencies).priority: p0(Critical) throughpriority: p4(Low).issues: write,contents: read).Setup Required
To enable this feature, a
GEMINI_API_KEYmust be added to the repository secrets.Verification Results
titleandbodyfrom issue events.priority:*labels suggested by the AI are applied, preventing unwanted label clutter.