by hmarr

πŸ‘ GitHub Action for automatically approving GitHub pull requests

151 Stars 26 Forks Last release: about 1 year ago (v2.0.0) MIT License 157 Commits 2 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Auto Approve GitHub Action



Automatically approve GitHub pull requests. The

secret must be provided as the
input for the action to work.

Important: use v2.0.0 or later, as v1 was designed for the initial GitHub Actions beta, and no longer works.

Usage instructions

Create a workflow file (e.g.

) that contains a step that
uses: hmarr/[email protected]
. Here's an example workflow file:
name: Auto approve
on: pull_request_target

jobs: build: runs-on: ubuntu-latest steps: - uses: hmarr/[email protected] with: github-token: "${{ secrets.GITHUB_TOKEN }}"

Combine with an

clause to only auto-approve certain users. For example, to auto-approve Dependabot pull requests, use:
name: Auto approve

on: pull_request_target

jobs: auto-approve: runs-on: ubuntu-latest steps: - uses: hmarr/[email protected] if: == 'dependabot[bot]' || == 'dependabot-preview[bot]' with: github-token: "${{ secrets.GITHUB_TOKEN }}"


GitHub lets you prevent merges of unapproved pull requests. However, it's occasionally useful to selectively circumvent this restriction - for instance, some people want Dependabot's automated pull requests to not require approval.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.