Skip to content

Commit 870aa5c

Browse files
authored
Add ReviewGate workflow for pull requests
1 parent 5de6e58 commit 870aa5c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/reviewgate.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: ReviewGate
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, edited, reopened]
6+
7+
jobs:
8+
reviewgate:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
pull-requests: write # `read` is enough if you set post-comment: false
13+
steps:
14+
- uses: actions/checkout@v4
15+
# Pre-release docs use @main until the first public tag is cut.
16+
# After v0.1.0, pin a release tag instead.
17+
- uses: leo-aa88/reviewgate@main
18+
with:
19+
github-token: ${{ secrets.GITHUB_TOKEN }}
20+
fail-on: FAIL # never | PASS | WARN | FAIL
21+
post-comment: true # honoured only when §14.1 coexistence allows
22+
mode: action # action owns comments + fail-on for this tutorial

0 commit comments

Comments
 (0)