Skip to content

Commit 3b428ec

Browse files
xuanyang15copybara-github
authored andcommitted
chore: let adk-bot respond to discussion when it is tagged
PiperOrigin-RevId: 805406204
1 parent 5cda37a commit 3b428ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/discussion_answering.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ name: ADK Answering Agent for Discussions
33
on:
44
discussion:
55
types: [created]
6+
discussion_comment:
7+
types: [created]
68

79
jobs:
810
agent-answer-questions:
9-
if: github.event.discussion.category.name == 'Q&A'
11+
if: >-
12+
(github.event_name == 'discussion' && github.event.discussion.category.name == 'Q&A') ||
13+
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@adk-bot') && github.event.sender.login != 'adk-bot')
1014
runs-on: ubuntu-latest
1115

1216
steps:

0 commit comments

Comments
 (0)