From 09b80466bcd889c79a1102b3ba2d59ce4f92171b Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Fri, 29 Dec 2023 15:52:42 +0900 Subject: [PATCH] Auto-merge Dependabot PRs with GitHub Actions --- .github/mergify.yml | 21 --------------------- .github/workflows/dependabot.yaml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 21 deletions(-) delete mode 100644 .github/mergify.yml create mode 100644 .github/workflows/dependabot.yaml diff --git a/.github/mergify.yml b/.github/mergify.yml deleted file mode 100644 index b89262b015..0000000000 --- a/.github/mergify.yml +++ /dev/null @@ -1,21 +0,0 @@ -pull_request_rules: - - name: dependabot - conditions: - - author=dependabot[bot] - actions: - queue: - name: default - method: squash - - name: merge - conditions: - - label=merge - - or: - - author=raviqqe - - "#approved-reviews-by>=1" - actions: - queue: - name: default - method: squash -queue_rules: - - name: default - conditions: [] diff --git a/.github/workflows/dependabot.yaml b/.github/workflows/dependabot.yaml new file mode 100644 index 0000000000..b4e087b30f --- /dev/null +++ b/.github/workflows/dependabot.yaml @@ -0,0 +1,13 @@ +name: dependabot +on: pull_request +permissions: + contents: write + pull-requests: write +jobs: + merge: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}