From 8a9085683ae46983dec955da91e5871f5d3743fa Mon Sep 17 00:00:00 2001 From: maz Date: Mon, 10 Feb 2025 11:55:59 +0900 Subject: [PATCH] add mergify --- .github/mergify.yml | 8 +++++++ .github/workflows/build.yml | 2 +- .../workflows/dependabot-patch-automerge.yml | 23 ------------------- 3 files changed, 9 insertions(+), 24 deletions(-) create mode 100644 .github/mergify.yml delete mode 100644 .github/workflows/dependabot-patch-automerge.yml diff --git a/.github/mergify.yml b/.github/mergify.yml new file mode 100644 index 0000000..2d2f3d9 --- /dev/null +++ b/.github/mergify.yml @@ -0,0 +1,8 @@ +pull_request_rules: + - name: automatic merge for Dependabot pull requests + conditions: + - author~=^dependabot(|-preview)\[bot\]$ + - check-success=lint-snapshot-test + actions: + merge: + method: merge \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed9cd7a..87568e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ on: pull_request: branches: ["main"] jobs: - ci: + lint-snapshot-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/dependabot-patch-automerge.yml b/.github/workflows/dependabot-patch-automerge.yml deleted file mode 100644 index d9983c5..0000000 --- a/.github/workflows/dependabot-patch-automerge.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: dependabot-patch-automerge -on: - pull_request: - branches: [ "main" ] - -permissions: - contents: write - -jobs: - merge: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - name: prepare - id: prepare - uses: dependabot/fetch-metadata@v2.3.0 - with: - github-token: '${{ secrets.GITHUB_TOKEN }}' - - name: do - if: ${{ steps.prepare.outputs.update-type == 'version-update:semver-patch' }} - run: gh pr merge --auto --merge ${{github.event.pull_request.html_url}} - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file