Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/profusion/check-approvals
https://github.com/profusion/check-approvals
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/profusion/check-approvals
- Owner: profusion
- Created: 2023-07-12T22:34:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-13T16:02:48.000Z (over 1 year ago)
- Last Synced: 2024-04-25T00:20:25.487Z (8 months ago)
- Language: TypeScript
- Size: 128 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# check-approvals
Checks whether a pull request has a minimum amount of approvals.## Inputs
### `MIN_APPROVALS_NEEDED`
Required minimum amount of approvals needed.## Outputs
### `APPROVED`
Whether the pull request has the minimum amount of approvals. Example: `true` or `false`.## Env
### `GITHUB_TOKEN`
Required github token to read the repository pull request.## Usage example
```yaml
name: Check approvals exampleon:
pull_request:jobs:
check-commits-authors:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
APPROVED: ${{ steps.my-step.outputs.APPROVED }}
steps:
- uses: profusion/check-approvals@main
id: my-step
if: ${{ github.event_name == 'pull_request_review' }}
with:
MIN_APPROVALS_NEEDED: ${{ vars.MIN_APPROVALS_NEEDED }}
```## [Development]
After you make changes on the Typescript codebase, you have to run `yarn build` to update `dist/bundle.js`.