Skip to content

Conversation

@kikoso
Copy link
Collaborator

@kikoso kikoso commented Feb 1, 2026

PR Description: Introduce Gemini-Powered PR Triage Action

Summary

This PR introduces an automated triage system powered by the Gemini 1.5 Flash model. It automatically assesses the severity and type of new Pull Requests and applies appropriate GitHub labels to streamline the review process.

Changes

  • New Workflow: Added triage-pr.yml which triggers on pull_request events.
  • Triage Script: Added triage_pr.py to handle the interaction with the Gemini API.
  • Automated Labeling: The system now detects and labels:
    • Severity: priority: p0 (Critical/Crash) to priority: p4 (Low priority).
    • Type: type: bug, type: docs, type: typo, type: feature, type: test.
    • Specialized: environment: no-google-play for specific device support additions.

Setup Required

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

Verification Results

  • The script has been designed to use urllib.request for zero-dependency execution in the GitHub Actions runner.
  • The workflow handles PR diffs and metadata efficiently by truncating large diffs to fit within API limits.

@googlemaps-bot
Copy link
Contributor

Code Coverage

There is no coverage information present for the Files changed


prompt = f"""
You are an expert software engineer and triage assistant.
Analyze the following Pull Request details and suggest appropriate labels for GitHub.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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