Skip to content

marierigal/require-approval-action

Repository files navigation

Require Approval Action

Release @latest

GitHub Action to check if the PR has been approved.

Inputs

approvals

Number of minimum approvals required, default to 1.

token (required)

GitHub token to check the pull request.

Example

name: Require Approval

on:
  - pull_request
  - pull_request_review

jobs:
  check:
    runs-on: ubuntu-latest

    steps:
      - name: Check approvals
        uses: marierigal/[email protected]
        with:
          approvals: 1
          token: ${{ secrets.GITHUB_TOKEN }}

License

MIT