Skip to content

ci: run triage + stale-issue bots via adk-samples reusable workflows#1009

Draft
karolpiotrowicz wants to merge 1 commit into
google:mainfrom
karolpiotrowicz:github-bots-callers
Draft

ci: run triage + stale-issue bots via adk-samples reusable workflows#1009
karolpiotrowicz wants to merge 1 commit into
google:mainfrom
karolpiotrowicz:github-bots-callers

Conversation

@karolpiotrowicz

Copy link
Copy Markdown
Contributor

Draft — blocked on adk-samples. Do not merge until the reusable workflows land:

Before enabling: (1) replace the @main refs with the merged adk-samples commit SHAs; (2) add a GEMINI_API_KEY repository secret; (3) confirm org Actions policy permits calling adk-samples reusable workflows.

Summary

Adds two thin caller workflows that triage and audit adk-go's own issues. The bot implementations live in google/adk-samples (go/github-bots/issue-triage, go/github-bots/stale-issues) and are invoked here as reusable workflows — so adk-go carries no bot code and no extra Go dependencies.

  • triage-bot.yml — on issues: [opened] + 6-hourly schedule + dispatch → sets issue type + a categorization label.
  • stale-bot.yml — daily schedule + dispatch → warns then closes issues left waiting on the author (maintainer list passed inline).

Why the token "just works"

A reusable workflow runs in the caller's context, so the built-in GITHUB_TOKEN (scoped here to issues: write) writes to adk-go — no PAT or GitHub App. OWNER/REPO resolve to adk-go automatically. Manual dispatch defaults to dry-run; both jobs are fork-guarded.

Relation to existing PRs

Supersedes the in-repo samples #1005 (stale) and #1007 (triage): the code now lives once, in adk-samples. Those two PRs will be closed once these callers and the adk-samples PRs land.

Validation

actionlint clean on both workflows. End-to-end behavior was verified by dry-run runs of the bots (from adk-samples, against this repo's live issues) — see #2079 / #2080.

Add two thin caller workflows that run the ADK Go GitHub bots on adk-go's own
issues. The bot implementations live in google/adk-samples
(go/github-bots/issue-triage and go/github-bots/stale-issues) and are invoked as
reusable workflows, so adk-go carries no bot code or extra dependencies.

Because a reusable workflow runs in the caller's context, the built-in
GITHUB_TOKEN (scoped here to issues: write) writes to adk-go and no PAT/App is
needed. Manual dispatch defaults to dry-run; both are fork-guarded.

Follow-ups before these are active: replace the `@main` refs with the merged
adk-samples commit SHAs, and add a GEMINI_API_KEY repository secret.
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