Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cognitedata/auto-approve-dependabot-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Auto Approve GitHub Dependabot Action

Name: cognitedata/auto-approve-dependabot-action

This is a fork of hmarr/auto-approve-action.

Automatically approve GitHub pull requests. The GITHUB_TOKEN secret must be provided as the github-token input for the action to work.

Usage instructions

Create a workflow file (e.g. .github/workflows/auto-approve.yml) that contains a step that uses: cognitedata/auto-approve-dependabot-action@v3.0.1. Here's an example workflow file:

name: Auto approve PRs by dependabot
# Trigger the workflow on pull request
on: pull_request_target
jobs:
 autoapprove:
 name: Auto-Approve a PR by dependabot
 runs-on: ubuntu-latest
 steps:
 - name: Auto approve
 uses: cognitedata/auto-approve-dependabot-action@v3.0.1
 if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
 with:
 github-token: ${{ secrets.GITHUB_TOKEN }}

Why?

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /