Skip to content

Commit ff5e24b

Browse files
committed
chore: automerge mino deps updates
1 parent e906141 commit ff5e24b

File tree

2 files changed

+53
-3
lines changed

2 files changed

+53
-3
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
version: 2
22
updates:
3-
- package-ecosystem: mix
4-
directory: /
3+
- package-ecosystem: "mix"
4+
directory: "/"
55
schedule:
6-
interval: weekly
6+
interval: "weekly"
7+
open-pull-requests-limit: 10
8+
9+
# Optional but recommended:
10+
rebase-strategy: "auto"
11+
labels:
12+
- "dependencies"
13+
- "elixir"
14+
reviewers:
15+
- "tgrk"
16+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Dependabot auto-merge (minor/patch)
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize, ready_for_review]
6+
workflow_run:
7+
# Optional: if you prefer enabling auto-merge after CI finishes, use workflow_run.
8+
# If you do, delete the pull_request trigger above and set the workflow name(s) here.
9+
workflows: ["CI"]
10+
types: [completed]
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
jobs:
17+
enable-automerge:
18+
# For pull_request trigger:
19+
if: >
20+
github.event_name == 'pull_request' &&
21+
github.actor == 'dependabot[bot]' &&
22+
(github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'dependabot')
23+
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Enable auto-merge for semver minor/patch updates
27+
uses: dependabot/fetch-metadata@v2
28+
id: meta
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Enable auto-merge (minor/patch only)
33+
if: >
34+
(steps.meta.outputs.update-type == 'version-update:semver-minor' ||
35+
steps.meta.outputs.update-type == 'version-update:semver-patch')
36+
run: |
37+
gh pr merge --auto --squash "${{ github.event.pull_request.html_url }}"
38+
env:
39+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+

0 commit comments

Comments
 (0)