Skip to content

Commit cc509bf

Browse files
authored
Create reviewer.yml
1 parent 34626b8 commit cc509bf

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/reviewer.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Cal PR Review
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
config:
7+
type: string
8+
description: "config for reviewer"
9+
required: true
10+
head:
11+
type: string
12+
description: "head commit sha"
13+
required: true
14+
base:
15+
type: string
16+
description: "base commit sha"
17+
required: false
18+
jobs:
19+
review:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
ref: ${{ inputs.head }}
26+
27+
- name: Run reviewer
28+
uses: addnab/docker-run-action@v3
29+
with:
30+
image: callstackai/cal:latest
31+
options: -v ${{ github.workspace }}:/code
32+
run: |
33+
/reviewer --dir /code --id ${{ github.run_id }} --token ${{ github.token }} --config "${{ inputs.config }}"

0 commit comments

Comments
 (0)