From 9af9532d71dce2912a42100de0e3e6d9e9bfead0 Mon Sep 17 00:00:00 2001 From: David Schall Date: Fri, 6 Oct 2023 09:26:31 +0000 Subject: [PATCH] New workflow to enable automerge for dependbot. 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 --- .github/workflows/enable-auto-merge.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/enable-auto-merge.yml diff --git a/.github/workflows/enable-auto-merge.yml b/.github/workflows/enable-auto-merge.yml new file mode 100644 index 00000000..692d52f4 --- /dev/null +++ b/.github/workflows/enable-auto-merge.yml @@ -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