Skip to content

Commit 32faaea

Browse files
committed
call Neo
1 parent 72753c7 commit 32faaea

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/tc_agent.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ on: issue_comment
55
jobs:
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 }}

0 commit comments

Comments
 (0)