|
| 1 | +## PullApprove alternative that runs entirely inside GitHub Actions. |
| 2 | +it use same .pullapprove.yml configuration, no need to change anything. |
| 3 | + |
| 4 | +Just create a workflow and call the step, eg: |
| 5 | + |
| 6 | +```yml |
| 7 | +# .github/workflows/code-review.yml |
| 8 | +name: Update CR Status |
| 9 | +on: |
| 10 | + pull_request_review: |
| 11 | + types: [submitted, edited, dismissed] |
| 12 | + pull_request: |
| 13 | + types: [synchronize, opened] |
| 14 | +jobs: |
| 15 | + cr: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + name: Update CR Status |
| 18 | + steps: |
| 19 | + - name: Run CR Status |
| 20 | + uses: mgiachetti/pullapprove-alt@master |
| 21 | + with: |
| 22 | + github-token: ${{ secrets.CR_GITHUB_TOKEN }} |
| 23 | +``` |
| 24 | +secrets.GITHUB_TOKEN is a [Personal access token](https://github.com/settings/tokens) with this permission: |
| 25 | + - repo |
| 26 | + - read:org (for teams) |
| 27 | +
|
| 28 | +features: |
| 29 | +- [x] overrides |
| 30 | + - [x] if |
| 31 | + - [x] status |
| 32 | + - [x] explanation |
| 33 | +- [x] pullapprove_conditions |
| 34 | + - [x] condition |
| 35 | + - [x] unmet_status |
| 36 | + - [x] explanation |
| 37 | +- [x] groups |
| 38 | + - [x] type |
| 39 | + - [x] required |
| 40 | + - [ ] optional |
| 41 | + - [x] conditions |
| 42 | + - [x] reviewers |
| 43 | + - [x] users |
| 44 | + - [x] teams |
| 45 | + - [x] reviews |
| 46 | + - [x] required |
| 47 | + - [ ] request |
| 48 | + - [ ] request_order |
| 49 | + - [ ] reviewed_for |
| 50 | + - [ ] description |
| 51 | + - [ ] labels |
| 52 | + - [x] meta |
| 53 | +- [ ] notifications |
| 54 | +- [ ] extends |
| 55 | +- [ ] github_api_version |
| 56 | +- [x] meta |
| 57 | +
|
| 58 | +Conditions: |
| 59 | + - [x] `base.ref != 'branch'` |
| 60 | + - [x] `base.ref == 'branch'` |
| 61 | + - [x] `'some-label' in labels` |
| 62 | + - [x] `'some-label' not in labels` |
| 63 | + - [x] `some-cond or some-cond` |
| 64 | + - eg: `'some-label' in labels or 'other-label' in labels` |
| 65 | + - [x] `'text' in title` |
| 66 | + - [x] `'text' not in title` |
| 67 | + - [x] `'.some-file' in files` |
| 68 | + - [x] `'app/*' in files` |
| 69 | + - [x] `'*.js' in files` |
| 70 | + - [ ] `'*travis*' not in statuses.successful` |
| 71 | + - [ ] `'global' not in groups.approved` |
| 72 | + - [ ] `not commits.are_signed_off` |
| 73 | + - [ ] `author_association == 'FIRST_TIME_CONTRIBUTOR'` |
| 74 | + - [ ] `len(groups.active) == 0` |
| 75 | + - [ ] `len(groups.active) < 1` |
| 76 | + |
0 commit comments