forked from bankrate/red-rover
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.14 KB
/
redrover_review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: RedRover Reviewer
permissions:
contents: read
pull-requests: write
on:
pull_request_target:
types: [opened, synchronize, reopened]
pull_request_review_comment:
types: [created]
concurrency:
group:
${{ github.repository }}-${{ github.event.number || github.head_ref ||
github.sha }}-${{ github.workflow }}-${{ github.event_name ==
'pull_request_review_comment' && 'pr_comment' || 'pr' }}
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }}
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Read file
id: file
run: echo "::set-output name=content::$(cat red_rover/custom_prompt.txt)"
- uses: RedVentures/red-rover@anthropic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
with:
debug: true
poem_enabled: true
less_verbose_review: false
review_comment_lgtm: false
path_filters: |
!dist/**
!**/*.lock
# system_message: ${{ steps.file.outputs.content }}