diff options
author | Joe Chen <jc@unknwon.io> | 2022-06-03 21:16:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 21:16:52 +0800 |
commit | 5f0999243a3d5248fd78f0271a184f8b12bdb0c4 (patch) | |
tree | 07cddaec98c6e21a828fa276970b8549a32c3c02 /.github/workflows | |
parent | 09ddb8761ff758123f036c658bfab512ba795b98 (diff) |
ci: add Codeball (#6997)
[skip ci]
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/codeball.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/codeball.yml b/.github/workflows/codeball.yml new file mode 100644 index 00000000..6b6c7a80 --- /dev/null +++ b/.github/workflows/codeball.yml @@ -0,0 +1,35 @@ +# Docs: https://github.com/sturdy-dev/codeball-action +name: Codeball +on: [ pull_request ] + +permissions: + contents: read + issues: write + pull-requests: write + +jobs: + codeball: + runs-on: ubuntu-latest + name: Codeball + steps: + + # Start a new Codeball review job + # This step is asynchronous and will return a job id + - name: Trigger Codeball + id: codeball_baller + uses: sturdy-dev/codeball-action/baller@v2 + + + # Wait for Codeball to return the status + - name: Get Status + id: codeball_status + uses: sturdy-dev/codeball-action/status@v2 + with: + codeball-job-id: ${{ steps.codeball_baller.outputs.codeball-job-id }} + + # If Codeball approved the contribution, approve the PR + - name: Approve PR + uses: sturdy-dev/codeball-action/approver@v2 + if: ${{ steps.codeball_status.outputs.approved == 'true' }} + with: + message: "Codeball: LGTM! :+1:" |