Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 0 additions & 93 deletions .github/pull_request_template.md

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/pr-triage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: UCP Pull Request Triaging Agent

on:
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- main
workflow_dispatch:
inputs:
pr_number:
description: 'The Pull Request number to triage'
required: true
type: 'string'

permissions:
pull-requests: write
contents: read

jobs:
agent-triage-pull-request:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Generate Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: Checkout repository
uses: actions/checkout@v4

- name: Checkout .github repository for org-level configuration
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/.github
path: .github_org
ref: main
token: ${{ steps.app-token.outputs.token }}

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests google-adk python-dotenv

- name: Run Triaging Script
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
GOOGLE_GENAI_USE_VERTEXAI: 0
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number || github.event.inputs.pr_number }}
INTERACTIVE: ${{ vars.UCP_PR_TRIAGE_INTERACTIVE || 0 }}
PYTHONPATH: ${{ github.workspace }}/.github_org/agents
CODEOWNERS_PATH: ${{ github.workspace }}/.github/CODEOWNERS
CONTRIBUTING_MD_PATH: ${{ github.workspace }}/.github_org/CONTRIBUTING.md
PULL_REQUEST_TEMPLATE_MD_PATH: ${{ github.workspace }}/.github_org/.github/pull_request_template.md
run: python -m pr_triage_agent.main
111 changes: 0 additions & 111 deletions CODE_OF_CONDUCT.md

This file was deleted.

Loading
Loading