Skip to content

Commit

Permalink
New workflow to enable automerge for dependbot.
Browse files Browse the repository at this point in the history
This addition enables automerge by default for
dependbot PR's. After approval it will be merged
automatically. This enhances maintainance.

Signed-off-by: David Schall <[email protected]>
  • Loading branch information
dhschall committed Oct 9, 2023
1 parent a4b52f0 commit 9af9532
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/enable-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Enable automerge on dependabot PRs

on:
# See note below about using pull_request_target
pull_request_target:

jobs:
automerge:
name: Enable automerge on dependabot PRs
runs-on: ubuntu-latest
steps:
- name: Enable automerge on dependabot PRs
uses: daneden/enable-automerge-action@v1
with:
# A personal access token that you have generated and saved in the
# repo or org’s encrypted secrets
github-token: ${{ secrets.VHIVE_SERVERLESS_ACCESS_KEY }}

# The name of the PR author to enable automerge for
# Defaults to dependabot[bot]
allowed-author: "dependabot[bot]"

# Allowed values: MERGE | SQUASH | REBASE
# Defaults to MERGE
merge-method: REBASE

0 comments on commit 9af9532

Please sign in to comment.