From 37fcfe229d5ec48cc868ac365d5b1535e44b4253 Mon Sep 17 00:00:00 2001 From: Rune Johansen <6797636+runejo@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:30:05 +0100 Subject: [PATCH] Auto-merge Dependabot patches --- .github/dependabot.yml | 13 ++++--------- .github/workflows/dependabot.yml | 26 ++++++++++++++++++++++++++ CODEOWNERS | 1 + 3 files changed, 31 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/dependabot.yml create mode 100644 CODEOWNERS diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a861ebf..6e4ab2f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,17 +9,12 @@ updates: directory: "/" schedule: interval: "daily" - reviewers: - - "JohannesFinsveen" - - "likp" - - "runejo" groups: - small-change: - patterns: - - "*" + minor-version-updates: + applies-to: version-updates update-types: - - "minor" - - "patch" + - "minor" + - package-ecosystem: "github-actions" directory: "/" schedule: diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..898a133 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,26 @@ +name: Dependabot auto-merge +on: pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{secrets.GITHUB_TOKEN}} + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v2 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Approve + if: steps.metadata.outputs.update-type == 'version-update:semver-patch' + run: gh pr review --approve "$PR_URL" + - name: Merge + if: steps.metadata.outputs.update-type == 'version-update:semver-patch' + run: gh pr merge --auto --squash "$PR_URL" diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..77696b2 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @pxtools/devs-scb @pxtools/devs-ssb