Skip to content

Commit 65512f2

Browse files
authored
Merge pull request #1 from CallstackAI/hackal-patch-1
Create reviewer.yml
2 parents 34626b8 + 84a080b commit 65512f2

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.callstack.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# yaml-language-server: $schema=https://storage.googleapis.com/config-schema/schema.v2.json
2+
3+
pr_review:
4+
modules:
5+
bug_hunter:
6+
enabled: true
7+
suggestions: true
8+
9+
code_suggestions:
10+
enabled: false
11+
12+
code_conventions:
13+
enabled: false
14+
conventions: |
15+
Exported code should be defined before internal code.
16+
17+
description:
18+
enabled: true
19+
diagram: true
20+
21+
grammar:
22+
enabled: true
23+
24+
performance:
25+
enabled: true
26+
27+
security:
28+
enabled: true
29+
30+
exclude:
31+
- "**/go.*"

.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)