]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
ci: add auto merge [skip ci]
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Sep 2020 15:44:38 +0000 (17:44 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Sep 2020 15:44:41 +0000 (17:44 +0200)
.github/auto-merge.yml [new file with mode: 0644]
.github/workflows/automerge.yml

diff --git a/.github/auto-merge.yml b/.github/auto-merge.yml
new file mode 100644 (file)
index 0000000..b5ba2d0
--- /dev/null
@@ -0,0 +1,6 @@
+- match:
+    dependency_type: development
+    update_type: all
+- match:
+    dependency_type: production
+    update_type: security:major
index d1f16413cea6a5552f8f0d3a2f0b1590160261d9..53875d2ebc67c32d15ee2bb6b28d8649b07f7624 100644 (file)
@@ -1,24 +1,14 @@
-on: pull_request
+name: auto-merge
 
-name: Auto merge Dependabot
+on:
+  pull_request:
 
 jobs:
-  automerge:
-    needs: [Test, Lint]
+  auto-merge:
     runs-on: ubuntu-latest
-    if: |
-      github.actor == 'dependabot[bot]' &&
-      github.event_name == 'pull_request' &&
-      startsWith(github.event.pull_request.title, 'chore(deps-dev):')
     steps:
-      - name: '@dependabot merge'
-        uses: actions/github-script@v2
+      - uses: actions/checkout@v2
+      - uses: ahmadnassri/action-dependabot-auto-merge@v2
         with:
-          github-token: ${{secrets.GITHUB_TOKEN}}
-          script: |
-            await github.issues.createComment({
-              owner: context.payload.repository.owner.login,
-              repo: context.payload.repository.name,
-              issue_number: context.payload.pull_request.number,
-              body: '@dependabot merge'
-            })
+          target: minor
+          github-token: ${{ secrets.GH_TOKEN }}