From 9a5a55f2361acc0d8e9a1ba1d90ba691a8d89fc9 Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Fri, 15 Sep 2023 17:11:21 +0900 Subject: [PATCH] feat: add review bot --- .github/workflows/review-bot.yaml | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/review-bot.yaml diff --git a/.github/workflows/review-bot.yaml b/.github/workflows/review-bot.yaml new file mode 100644 index 00000000..90019e34 --- /dev/null +++ b/.github/workflows/review-bot.yaml @@ -0,0 +1,44 @@ +name: review bot +on: + issue_comment: + types: [created, edited] +jobs: + review_comment: + if: contains(github.event.comment.body, '/review-bot ') + runs-on: ubuntu-latest + steps: + - uses: "DamianReeves/write-file-action@master" + with: + path: /tmp/comment.txt + write-mode: overwrite + contents: ${{ github.event.comment.body }} + - uses: jc-lab/shim-review-bot@v0.0.4 + with: + comment-file: /tmp/comment.txt + issue-repository: ${{ github.repository }} + issue-number: ${{ github.event.issue.number }} + source: ${{ inputs.source }} + build-script: ${{ inputs.build-script }} + output-file: ${{ inputs.output-file }} + vendor-cert: ${{ inputs.vendor-cert }} + report-output: ${{ inputs.report-output }} + + +# ISSUE MESSAGE FORMAT +# ================================================== +# /review-bot SOURCE +# ``` (it is optional. yaml-format) +# parameters +# ``` +# ================================================== + +# ISSUE MESSAGE SAMPLE +# ================================================== +# /review-bot https://github.com/jc-lab/shim-review-bot/tree/master/sample-repo +# ``` +# build-script: build.sh +# output-file: output.tar +# vendor-cert: vendor_cert.der +# sbat: sbat.csv +# ``` +# ==================================================