Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,49 @@ updates:
interval: "weekly"
Comment thread
thomasturrell marked this conversation as resolved.
Outdated
reviewers:
- "berrycloud/reviewers"
groups:
auto-merge-minor-and-patch:
update-types:
- "minor"
- "patch"
patterns:
- "com.h2database:h2"
- "com.jayway.jsonpath:json-path-assert"
- "com.puppycrawl.tools:checkstyle"
- "com.squareup.okhttp3:mockwebserver"
- "com.squareup.okhttp3:okhttp"
- "com.squareup.okhttp3:okhttp-bom"
- "io.hypersistence:hypersistence-utils-hibernate-70"
- "io.jsonwebtoken:jjwt-api"
- "io.jsonwebtoken:jjwt-impl"
- "io.jsonwebtoken:jjwt-jackson"
- "io.netty:netty-resolver-dns-native-macos"
- "jakarta.validation:jakarta.validation-api"
- "org.hibernate.validator:hibernate-validator"
- "org.projectlombok:lombok"
- "org.springframework.boot:spring-boot-autoconfigure"
- "org.springframework.boot:spring-boot-devtools"
- "org.springframework.boot:spring-boot-jackson2"
- "org.springframework.boot:spring-boot-starter-data-jpa"
- "org.springframework.boot:spring-boot-starter-test"
- "org.springframework.boot:spring-boot-starter-validation"
- "org.springframework.boot:spring-boot-starter-web"
- "org.springframework.boot:spring-boot-starter-webflux"
- "org.springframework.boot:spring-boot-webmvc-test"
- "org.springframework.integration:spring-integration-test"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
auto-merge-minor-and-patch:
update-types:
- "minor"
- "patch"
patterns:
- "actions/checkout"
- "actions/create-github-app-token"
- "actions/setup-java"
- "actions/stale"
- "advanced-security/maven-dependency-submission-action"
- "github/codeql-action"
Comment thread
thomasturrell marked this conversation as resolved.
25 changes: 25 additions & 0 deletions .github/workflows/dependabot-auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Dependabot Auto-Approve

on: pull_request
Comment thread
thomasturrell marked this conversation as resolved.
Outdated

permissions:
pull-requests: write

jobs:
auto-approve:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Get Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Comment thread
thomasturrell marked this conversation as resolved.
Outdated
- name: Approve minor and patch updates
if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: |
gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Comment thread
thomasturrell marked this conversation as resolved.
Outdated
26 changes: 26 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Dependabot Auto-Merge

on: pull_request

Comment thread
thomasturrell marked this conversation as resolved.
permissions:
contents: write
pull-requests: write

jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Get Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Comment thread
thomasturrell marked this conversation as resolved.
Outdated
- name: Enable auto-merge for minor and patch updates
if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: |
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Comment thread
thomasturrell marked this conversation as resolved.
Outdated
Loading