Skip to content

Commit

Permalink
Tweak renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
bgpat committed Mar 7, 2024
1 parent 699d73f commit 78bc62a
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 3 deletions.
21 changes: 19 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name-template: 'v$NEXT_PATCH_VERSION'
tag-template: 'v$NEXT_PATCH_VERSION'
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
Expand All @@ -14,7 +14,24 @@ categories:
labels:
- 'maintenance'
- 'chore'
- title: '🤖 Dependencies'
labels:
- 'dependencies'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
- 'breaking change'
minor:
labels:
- 'minor'
- 'feature'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/renovate-config-validator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: renovate-config-validator
on:
pull_request:
paths:
- renovate.json
- renovate.json5
- .github/renovate.json
- .github/renovate.json5
- .renovaterc
- .renovaterc.json
- .renovaterc.json5
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: suzuki-shunsuke/github-action-renovate-config-validator@v1
14 changes: 13 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"extends": [
"config:base"
"config:recommended"
],
"postUpdateOptions": [
"gomodTidy",
"gomodUpdateImportPaths"
],
"packageRules": [
{
"matchManagers": ["gomod"],
"automerge": true,
"platformAutomerge": true,
"labels": ["dependencies"]
}
]
}

0 comments on commit 78bc62a

Please sign in to comment.