diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index f678a6b..8f2fc3f 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -1,7 +1,3 @@
-# To get started with Dependabot version updates, you'll need to specify which
-# package ecosystems to update and where the package manifests are located.
-# Please see the documentation for all configuration options:
-# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
registries:
maven-github:
@@ -10,9 +6,19 @@ registries:
username: bigboxer23
password: ${{secrets.GH_PAT_FOR_ACTIONS_TOKEN}}
updates:
- - package-ecosystem: "maven" # See documentation for possible values
- directory: "/" # Location of package manifests
+ - package-ecosystem: "maven"
+ directory: "/"
registries:
- maven-github
schedule:
interval: "weekly"
+ commit-message:
+ prefix: "deps"
+ groups:
+ minor-patch-dependencies:
+ update-types:
+ - "minor"
+ - "patch"
+ major-dependencies:
+ update-types:
+ - "major"
\ No newline at end of file
diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml
new file mode 100644
index 0000000..901345c
--- /dev/null
+++ b/.github/workflows/automerge.yml
@@ -0,0 +1,19 @@
+name: Enable auto-merge for Dependabot PRs
+
+on:
+ pull_request:
+ types: [opened, labeled]
+
+jobs:
+ enable-automerge:
+ runs-on: ubuntu-latest
+ if: github.actor == 'dependabot[bot]'
+ permissions:
+ pull-requests: write
+ contents: write
+ steps:
+ - name: Enable auto-merge for Dependabot PR
+ uses: peter-evans/enable-pull-request-automerge@v3
+ with:
+ pull-request-number: ${{ github.event.pull_request.number }}
+ merge-method: squash # or 'merge' or 'rebase'
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 5794d59..1bc571a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.bigboxer23
switchbotapi-java
- 1.2.0
+ 1.2.1
switchbotapi-java
https://github.com/bigboxer23/switchbotapi-java