File tree Expand file tree Collapse file tree 2 files changed +64
-0
lines changed
Expand file tree Collapse file tree 2 files changed +64
-0
lines changed Original file line number Diff line number Diff line change 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.*"
Original file line number Diff line number Diff line change 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 }}"
You can’t perform that action at this time.
0 commit comments