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
55jobs :
66 pr_commented :
77 # 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') }}
1010 runs-on : ubuntu-latest
1111 steps :
1212 - run : |
1313 echo A comment on PR $NUMBER
1414 env:
1515 NUMBER: ${{ github.event.issue.number }}
1616
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') }}
2121 runs-on : ubuntu-latest
2222 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