Skip to content

Commit c70baf4

Browse files
authored
Create acr_bot.yml
1 parent b948821 commit c70baf4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/acr_bot.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "AutoCodeRover Bot"
2+
3+
permissions:
4+
issues: write
5+
contents: write # change to `read` if you do not want to use open-pr
6+
pull-requests: write # (optional) remove if you do not want to use open-pr
7+
8+
on:
9+
issue_comment:
10+
types: [created]
11+
issues:
12+
types: [opened]
13+
14+
jobs:
15+
acr-bot:
16+
runs-on: ubuntu-latest
17+
if: ${{ contains(github.event.comment.body || github.event.issue.body, '@acr-bot') }}
18+
steps:
19+
- name: Check out
20+
uses: actions/checkout@v4
21+
22+
- id: set-var
23+
run: echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" >> $GITHUB_OUTPUT
24+
25+
- name: ACR bot
26+
uses: AutoCodeRoverSG/[email protected]
27+
env:
28+
TARGET_REPO_PATH: ${{ steps.set-var.outputs.GITHUB_WORKSPACE }}
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
31+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

0 commit comments

Comments
 (0)