Skip to content

Commit 109fbc1

Browse files
authored
Merge branch 'main' into test/forwarding-artifact-service-coverage
2 parents 732579b + a562a31 commit 109fbc1

37 files changed

Lines changed: 1458 additions & 965 deletions
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "ADK Issue Tracker Maintenance"
16+
17+
on:
18+
# Daily background cleanup at 6:00 AM UTC (10 PM PST)
19+
schedule:
20+
- cron: '0 6 * * *'
21+
22+
# Allows manual triggering from the Actions console
23+
workflow_dispatch:
24+
inputs:
25+
run_spam_monitor:
26+
description: 'Run Issue Monitoring Agent (Spam Sweep)'
27+
type: boolean
28+
default: true
29+
full_scan:
30+
description: 'For Issue Monitoring: Run an Initial Full Scan of ALL open issues'
31+
type: boolean
32+
default: false
33+
run_stale_auditor:
34+
description: 'Run Stale Issue Auditor Agent'
35+
type: boolean
36+
default: true
37+
38+
permissions:
39+
issues: write
40+
contents: read
41+
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.ADK_TRIAGE_AGENT }}
44+
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
45+
OWNER: ${{ github.repository_owner }}
46+
REPO: adk-python
47+
CONCURRENCY_LIMIT: 3
48+
LLM_MODEL_NAME: "gemini-3.5-flash"
49+
PYTHONPATH: contributing/samples/adk_team
50+
51+
jobs:
52+
# 1. Sweep for spam, advertising, and invalid issues
53+
sweep-spam:
54+
if: |
55+
github.repository == 'google/adk-python' &&
56+
(github.event_name == 'schedule' || github.event.inputs.run_spam_monitor == 'true')
57+
runs-on: ubuntu-latest
58+
timeout-minutes: 120
59+
steps:
60+
- name: Checkout repository
61+
uses: actions/checkout@v6
62+
63+
- name: Set up Python
64+
uses: actions/setup-python@v6
65+
with:
66+
python-version: '3.11'
67+
68+
- name: Install dependencies
69+
run: |
70+
python -m pip install --upgrade pip
71+
pip install requests google-adk python-dotenv
72+
73+
- name: Run Issue Monitoring Agent (Spam Sweep)
74+
env:
75+
INITIAL_FULL_SCAN: ${{ github.event.inputs.full_scan == 'true' }}
76+
run: python -m adk_issue_monitoring_agent.main
77+
78+
# 2. Audit inactive issues and nudge/close them
79+
audit-stale:
80+
if: |
81+
github.repository == 'google/adk-python' &&
82+
(github.event_name == 'schedule' || github.event.inputs.run_stale_auditor == 'true')
83+
runs-on: ubuntu-latest
84+
timeout-minutes: 60
85+
steps:
86+
- name: Checkout repository
87+
uses: actions/checkout@v6
88+
89+
- name: Set up Python
90+
uses: actions/setup-python@v6
91+
with:
92+
python-version: '3.11'
93+
94+
- name: Install dependencies
95+
run: |
96+
python -m pip install --upgrade pip
97+
pip install requests google-adk python-dateutil
98+
99+
- name: Run Stale Auditor Agent
100+
run: python -m adk_stale_agent.main

.github/workflows/issue-monitor.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/pr-triage.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,24 @@
1515
name: ADK Pull Request Triaging Agent
1616

1717
on:
18-
pull_request_target:
19-
types: [opened, reopened, edited]
18+
schedule:
19+
# Run every 6 hours
20+
- cron: '0 */6 * * *'
2021
workflow_dispatch:
2122
inputs:
2223
pr_number:
23-
description: 'The Pull Request number to triage'
24-
required: true
24+
description: 'The Pull Request number to triage (leave empty for batch mode)'
25+
required: false
26+
type: 'string'
27+
pr_count:
28+
description: 'Number of PRs to process in batch mode (default: 10)'
29+
required: false
30+
default: '10'
2531
type: 'string'
2632

2733
jobs:
2834
agent-triage-pull-request:
29-
if: >-
30-
github.event_name == 'workflow_dispatch' || (
31-
github.event.pull_request.head.repo.full_name == github.repository &&
32-
!contains(github.event.pull_request.labels.*.name, 'google-contributor')
33-
)
35+
if: github.repository == 'google/adk-python'
3436
runs-on: ubuntu-latest
3537
permissions:
3638
pull-requests: write
@@ -57,7 +59,8 @@ jobs:
5759
GOOGLE_GENAI_USE_VERTEXAI: 0
5860
OWNER: 'google'
5961
REPO: 'adk-python'
60-
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number || github.event.inputs.pr_number }}
62+
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number || github.event.inputs.pr_number || '' }}
63+
PR_COUNT_TO_PROCESS: ${{ github.event.inputs.pr_count || '10' }}
6164
INTERACTIVE: ${{ vars.PR_TRIAGE_INTERACTIVE }}
6265
PYTHONPATH: contributing/samples/adk_team
6366
run: python -m adk_pr_triaging_agent.main

.github/workflows/stale-bot.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

AGENTS.md

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,3 @@
1-
# AI Coding Assistant Context
2-
3-
This document provides context for AI coding assistants (Antigravity, Gemini CLI, etc.) to understand the ADK Python project and assist with development.
4-
5-
## ADK Knowledge, Architecture, and Style
6-
7-
For all matters regarding ADK development, please use the appropriate skill:
8-
9-
- **`adk-architecture`**: Use this skill whenever you need to understand the architecture, event flow, or state management of the ADK system, or when designing or modifying core components and public APIs.
10-
- Read `.agents/skills/adk-architecture/SKILL.md` for full instructions.
11-
- **`adk-style`**: Use this skill whenever writing code, tests, or reviewing PRs for the ADK project to ensure compliance with styling and coding conventions. Also use it for committing, bug fixing, and testing rules.
12-
- Read `.agents/skills/adk-style/SKILL.md` for full instructions.
13-
- **`adk-git`**: Use this skill for any git operation (commit, push, pull, rebase, etc.). It provides guidelines for Conventional Commits and branch naming.
14-
- Read `.agents/skills/adk-git/SKILL.md` for full instructions.
15-
- **`adk-sample-creator`**: Use this skill when creating new samples demonstrating features or agent patterns, or when adding examples to subdirectories under `contributing/`.
16-
- Read `.agents/skills/adk-sample-creator/SKILL.md` for full instructions.
17-
- **`adk-review`**: Use this skill to review local changes for errors, style compliance, unintended outcomes, and to check if associated design docs, guides, samples, or tests need updates.
18-
- Read `.agents/skills/adk-review/SKILL.md` for full instructions.
19-
- **`adk-issue`**: Use this skill when analyzing, triaging, and resolving GitHub issues for the adk-python repository (orchestrating both triage and fix implementation). Do NOT use this skill if the "/adk-issue-analyze" command is explicitly requested.
20-
- Read `.agents/skills/adk-issue/SKILL.md` for full instructions.
21-
- **`adk-issue-analyze`**: Use this skill to fetch, inspect, and analyze a GitHub issue in a strictly read-only manner. Use this skill when the "/adk-issue-analyze" command is explicitly called.
22-
- Read `.agents/skills/adk-issue-analyze/SKILL.md` for full instructions.
23-
- **`adk-issue-fix`**: Use this skill to implement the code changes, unit tests, and documentation updates for an approved GitHub issue fix. Use this skill when the "/adk-issue-fix" command is explicitly called.
24-
- Read `.agents/skills/adk-issue-fix/SKILL.md` for full instructions.
25-
- **`adk-pr-analyze`**: Use this skill to fetch, inspect, and analyze a GitHub pull request in a strictly read-only manner. Use this skill when the "/adk-pr-analyze" command is explicitly called.
26-
- Read `.agents/skills/adk-pr-analyze/SKILL.md` for full instructions.
27-
- **`adk-pr-triage`**: Use this skill to orchestrate triaging and reviewing GitHub pull requests (PRs) (orchestrating both analysis and user review/checkout). Do NOT use this skill if the "/adk-pr-analyze" command is explicitly requested.
28-
- Read `.agents/skills/adk-pr-triage/SKILL.md` for full instructions.
29-
30-
311
## Project Overview
322

333
The Agent Development Kit (ADK) is an open-source, code-first Python toolkit for building, evaluating, and deploying sophisticated AI agents.
@@ -45,6 +15,10 @@ The Agent Development Kit (ADK) is an open-source, code-first Python toolkit for
4515

4616
For details on how the Runner works and the invocation lifecycle, please refer to the `adk-architecture` skill and the referenced documentation therein.
4717

18+
## ADK Knowledge, Architecture, and Style
19+
20+
Skills related to ADK development are in `.agents/skills/`.
21+
4822
## Project Architecture
4923

5024
For detailed architecture patterns, component descriptions, and core interfaces, please refer to the **`adk-architecture`** skill at `.agents/skills/adk-architecture/SKILL.md`.

0 commit comments

Comments
 (0)