Skip to content

build: automatically triage issues#1652

Merged
dkhawk merged 2 commits intomainfrom
build/automatically-triage-issues
Feb 9, 2026
Merged

build: automatically triage issues#1652
dkhawk merged 2 commits intomainfrom
build/automatically-triage-issues

Conversation

@kikoso
Copy link
Collaborator

@kikoso kikoso commented Feb 9, 2026

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

  • New Workflow: Added triage-issue.yml which triggers on Issue events (opened, edited) and workflow_dispatch.
  • Restricted Scope: Unlike previous iterations, this is now restricted to Issues only to keep PR workflows clean.
  • Triage Script: Added triage_issue.py to handle the interaction with the Gemini API using urllib.request (zero external dependencies).
  • Automated Labeling: The system is specifically optimized to detect and apply Priority labels:
    • Priority: priority: p0 (Critical) through priority: p4 (Low).
  • Security: Updated workflow permissions to minimal scope (issues: write, contents: read).

Setup Required

To enable this feature, a GEMINI_API_KEY must be added to the repository secrets.

Verification Results

  • Issue Detection: Verified that the workflow correctly picks up title and body from issue events.
  • Label Filtering: Confirmed that only priority:* labels suggested by the AI are applied, preventing unwanted label clutter.
  • PR Exclusion: Verified that pull request events do not trigger this workflow.

This has been implemented in android-maps-compose.

@kikoso kikoso requested a review from a team as a code owner February 9, 2026 14:59
@googlemaps-bot
Copy link
Contributor

Code Coverage

Overall Project 40.1% 🍏

There is no coverage information present for the Files changed

@dkhawk dkhawk merged commit 860c3ef into main Feb 9, 2026
8 checks passed
@dkhawk dkhawk deleted the build/automatically-triage-issues branch February 9, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants