Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jupiterone/action-verify-all-reviewers
https://github.com/jupiterone/action-verify-all-reviewers
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jupiterone/action-verify-all-reviewers
- Owner: JupiterOne
- License: mpl-2.0
- Created: 2022-03-04T19:02:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-05T17:50:37.000Z (11 months ago)
- Last Synced: 2024-04-06T01:22:08.556Z (7 months ago)
- Language: JavaScript
- Size: 182 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# GitHub Action: Verify All Reviewers
Currently, there is not an option within GitHub’s "Branch Protection Rules" to ensure that all reviewers have approved a pull request. This action is a mechanism for enforcing this review behavior, and optionally merging the PR automatically when all reviewers have approved.
## Development
### Prerequisites
1. Install [Node.js](https://nodejs.org/) using the [installer](https://nodejs.org/en/download/)
2. Install [`yarn`](https://yarnpkg.com/getting-started/install) or [`npm`](https://github.com/npm/cli#installation) to install dependencies.
3. Install dependencies with `yarn install`.
4. Install the build tool: `npm i -g @vercel/ncc`### Build
yarn build### Changelog
The history of this integration's development can be viewed at [CHANGELOG.md](CHANGELOG.md).### Usage
#### Installation
1. Copy [`verify_all_reviewers.yml`](https://github.com/JupiterOne/action-verify-all-reviewers/blob/main/.github/workflows/verify_all_reviewers.yml) and [`check_for_reviewers.yml`](https://github.com/JupiterOne/action-verify-all-reviewers/blob/main/.github/workflows/check_for_reviewers.yml) to the .github/workflows folder in your repo.#### GitHub Configuration
Set automerge
1. Go to "settings" -> "General"
2. Select "Allow auto-merge"Set the branch policies
1. Go to "settings" -> "branches"
2. Either edit a current policy or create a new policy
3. Configure the following policy settings
1. "Branch name pattern"
1. Enter a branch name
2. "Protect matching branches"
1. Select "Require a pull request before merging"
2. Select "Require approvals"
1. Select "1"
3. Select "Require status checks to pass before merging"
1. Search for and select "Verify All Reviewers" and "Check for Reviewers"
3. Click "Save changes"