File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -5,22 +5,22 @@ on: issue_comment
5
5
jobs :
6
6
pr_commented :
7
7
# This job only runs for pull request comments
8
- name : TC Action Agent - Do It - PR comment
9
- if : ${{ github.event.issue.pull_request }}
8
+ name : ' [PR Comment] - Use TC AI Agent '
9
+ if : ${{ github.event.issue.pull_request && contains(github.event.comment.body, '@tc-ai') }}
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- run : |
13
13
echo A comment on PR $NUMBER
14
14
env:
15
15
NUMBER: ${{ github.event.issue.number }}
16
16
17
- issue_commented :
18
- # This job only runs for issue comments
19
- name : TC Action Agent - Do It - Issue comment
20
- if : ${{ !github.event.issue.pull_request }}
17
+ tc_agent_tagged_in_issue_comment :
18
+ # This job only runs for issue comments where the agent is tagged with @tc-ai
19
+ name : ' [Issue Comment] - Use TC AI Agent '
20
+ if : ${{ !github.event.issue.pull_request && contains(github.event.comment.body, '@tc-ai') }}
21
21
runs-on : ubuntu-latest
22
22
steps :
23
- - run : |
24
- echo A comment on issue $NUMBER
25
- env :
26
- NUMBER : ${{ github.event.issue.number }}
23
+ - name : Call TC AI Agent
24
+ uses : topcoder-platform/tc-action-agent@master
25
+ with :
26
+ github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments