Skip to content

Commit 6a683f8

Browse files
committed
feat: add review bot
1 parent 1f85d85 commit 6a683f8

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/review-bot.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: review bot
2+
on:
3+
issue_comment:
4+
types: [created, edited]
5+
jobs:
6+
review_comment:
7+
if: contains(github.event.comment.body, '/review-bot ')
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: "DamianReeves/write-file-action@master"
11+
with:
12+
path: /tmp/comment.txt
13+
write-mode: overwrite
14+
contents: ${{ github.event.comment.body }}
15+
- uses: jc-lab/shim-review-bot@v0.0.5
16+
with:
17+
comment-file: /tmp/comment.txt
18+
issue-repository: ${{ github.repository }}
19+
issue-number: ${{ github.event.issue.number }}
20+
source: ${{ inputs.source }}
21+
build-script: ${{ inputs.build-script }}
22+
output-file: ${{ inputs.output-file }}
23+
vendor-cert: ${{ inputs.vendor-cert }}
24+
report-output: ${{ inputs.report-output }}
25+
26+
27+
# ISSUE MESSAGE FORMAT
28+
# ==================================================
29+
# /review-bot SOURCE
30+
# ``` (it is optional. yaml-format)
31+
# parameters
32+
# ```
33+
# ==================================================
34+
35+
# ISSUE MESSAGE SAMPLE
36+
# ==================================================
37+
# /review-bot https://github.com/jc-lab/shim-review-bot/tree/master/sample-repo
38+
# ```
39+
# build-script: build.sh
40+
# output-file: output.tar
41+
# vendor-cert: vendor_cert.der
42+
# sbat: sbat.csv
43+
# ```
44+
# ==================================================

0 commit comments

Comments
 (0)