Skip to content

Pr triage#9

Draft
nearlyforget wants to merge 5 commits intoUniversal-Commerce-Protocol:mainfrom
nearlyforget:pr-triage
Draft

Pr triage#9
nearlyforget wants to merge 5 commits intoUniversal-Commerce-Protocol:mainfrom
nearlyforget:pr-triage

Conversation

@nearlyforget
Copy link
Contributor

Description

This PR introduces the pr_triage_agent, an automated assistant powered by Gemini 2.0 Flash designed to manage and streamline the pull request lifecycle across the organization.

Key Capabilities:

  • Template & Guideline Enforcement: Automatically reads the repository's pull_request_template.md and CONTRIBUTING.md to ensure contributors have provided all
    necessary information (e.g., descriptions, categories, and checklists).
  • Intelligent Labeling: Analyzes code diffs, commit messages, and PR descriptions to apply the most appropriate labels (e.g., bug, enhancement, area:schema).
  • Multi-Repository Support: Includes specialized configurations and prompts for different project areas, including ucp core, conformance, sdks, and samples.
  • Human-Aware Interaction: The agent is designed to be helpful without being noisy. It will skip commenting if it detects that a human reviewer has already joined
    the conversation.
  • Cross-Repo Integration: Built to be called by workflows in other repositories, pulling the centralized logic from this .github repository.

Components Added:

  • agents/pr_triage_agent/agent.py: Core logic and Gemini integration.
  • agents/pr_triage_agent/configs/*.json: Repository-specific labeling rules and allowed label sets.
  • agents/pr_triage_agent/prompts/*.txt: Targeted instructions for the AI to handle different repo contexts.

⚠️ Note on Execution:
This agent requires a GOOGLE_API_KEY (Gemini API) to function. While the logic is now ready, the agent will become fully operational once the API key is provisioned
and added to the repository secrets.

Category (Required)

  • Core Protocol
  • Governance/Contributing
  • Capability
  • Documentation
  • Infrastructure: CI/CD, Linters, or build scripts.
  • Maintenance
  • SDK
  • Samples / Conformance

Related Issues

  • Integrates with the pr-triage.yml workflow in the ucp repository.

Checklist

  • I have followed the [Contributing Guide (https://github.com/agentic-commerce/ucp/blob/main/CONTRIBUTING.md).
  • My changes pass all local linting and formatting checks.
  • I have verified the agent's logic using a test PR in a staging environment.

Screenshots / Logs (if applicable)

Example Agent Output:

Response from ADK Triaging Agent
Hello @contributor, thank you for creating this PR!
This PR is a bug fix, could you please provide logs or a screenshot after the fix is applied? This information will help reviewers to review your PR more
efficiently.


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.

1 participant