mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: add Github workflow config for the ADK PR triaging agent
PiperOrigin-RevId: 788519884
This commit is contained in:
committed by
Copybara-Service
parent
bf72426af2
commit
646eb42533
@@ -0,0 +1,38 @@
|
||||
name: ADK Pull Request Triaging Agent
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, edited]
|
||||
|
||||
jobs:
|
||||
agent-triage-pull-request:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- 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
|
||||
|
||||
- name: Run Triaging Script
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ADK_TRIAGE_AGENT }}
|
||||
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
|
||||
GOOGLE_GENAI_USE_VERTEXAI: 0
|
||||
OWNER: 'google'
|
||||
REPO: 'adk-python'
|
||||
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
|
||||
INTERACTIVE: ${{ secrets.PR_TRIAGE_INTERACTIVE }}
|
||||
PYTHONPATH: contributing/samples
|
||||
run: python -m adk_pr_triaging_agent.main
|
||||
Reference in New Issue
Block a user