Skip to content

Commit 4d6b725

Browse files
authored
chore: adding automerge of deps (#118)
1 parent 6123338 commit 4d6b725

3 files changed

Lines changed: 32 additions & 7 deletions

File tree

.github/dependabot.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
51
version: 2
62
registries:
73
maven-github:
@@ -10,9 +6,19 @@ registries:
106
username: bigboxer23
117
password: ${{secrets.GH_PAT_FOR_ACTIONS_TOKEN}}
128
updates:
13-
- package-ecosystem: "maven" # See documentation for possible values
14-
directory: "/" # Location of package manifests
9+
- package-ecosystem: "maven"
10+
directory: "/"
1511
registries:
1612
- maven-github
1713
schedule:
1814
interval: "weekly"
15+
commit-message:
16+
prefix: "deps"
17+
groups:
18+
minor-patch-dependencies:
19+
update-types:
20+
- "minor"
21+
- "patch"
22+
major-dependencies:
23+
update-types:
24+
- "major"

.github/workflows/automerge.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Enable auto-merge for Dependabot PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened, labeled]
6+
7+
jobs:
8+
enable-automerge:
9+
runs-on: ubuntu-latest
10+
if: github.actor == 'dependabot[bot]'
11+
permissions:
12+
pull-requests: write
13+
contents: write
14+
steps:
15+
- name: Enable auto-merge for Dependabot PR
16+
uses: peter-evans/enable-pull-request-automerge@v3
17+
with:
18+
pull-request-number: ${{ github.event.pull_request.number }}
19+
merge-method: squash # or 'merge' or 'rebase'

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.bigboxer23</groupId>
66
<artifactId>switchbotapi-java</artifactId>
7-
<version>1.2.0</version>
7+
<version>1.2.1</version>
88

99
<name>switchbotapi-java</name>
1010
<url>https://github.com/bigboxer23/switchbotapi-java</url>

0 commit comments

Comments
 (0)