From 3b428ec81f76949607044665e5818ed5bac68d91 Mon Sep 17 00:00:00 2001 From: Xuan Yang Date: Wed, 10 Sep 2025 10:01:47 -0700 Subject: [PATCH] chore: let adk-bot respond to discussion when it is tagged PiperOrigin-RevId: 805406204 --- .github/workflows/discussion_answering.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/discussion_answering.yml b/.github/workflows/discussion_answering.yml index 430e2458..1ad229e6 100644 --- a/.github/workflows/discussion_answering.yml +++ b/.github/workflows/discussion_answering.yml @@ -3,10 +3,14 @@ name: ADK Answering Agent for Discussions on: discussion: types: [created] + discussion_comment: + types: [created] jobs: agent-answer-questions: - if: github.event.discussion.category.name == 'Q&A' + if: >- + (github.event_name == 'discussion' && github.event.discussion.category.name == 'Q&A') || + (github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@adk-bot') && github.event.sender.login != 'adk-bot') runs-on: ubuntu-latest steps: