Add kokuwio preset
This commit is contained in:
parent
3b8bdda463
commit
ad6c76dd4b
5 changed files with 121 additions and 0 deletions
9
.markdownlint.yaml
Normal file
9
.markdownlint.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Default state for all rules
|
||||
default: true
|
||||
|
||||
# MD009 - Trailing spaces
|
||||
MD009:
|
||||
strict: true
|
||||
|
||||
# MD013 - Line length
|
||||
MD013: false
|
21
.woodpecker.yaml
Normal file
21
.woodpecker.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
when:
|
||||
event: [manual, pull_request, push]
|
||||
branch: main
|
||||
path: [.woodpecker.yaml, default.json, "**/*.yaml", "**/*.md"]
|
||||
|
||||
steps:
|
||||
|
||||
renovate:
|
||||
image: kokuwaio/renovate-config-validator
|
||||
depends_on: []
|
||||
when: [path: [.woodpecker.yaml, default2.json]]
|
||||
|
||||
yaml:
|
||||
image: kokuwaio/yamllint
|
||||
depends_on: []
|
||||
when: [path: [.woodpecker.yaml, .yamllint.yaml, "**/*.yaml"]]
|
||||
|
||||
markdown:
|
||||
image: kokuwaio/markdownlint
|
||||
depends_on: []
|
||||
when: [path: [.woodpecker.yaml, .markdownlint.yaml, "**/*.md"]]
|
15
.yamllint.yaml
Normal file
15
.yamllint.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
extends: default
|
||||
|
||||
## see https://yamllint.readthedocs.io/en/stable/rules.html
|
||||
rules:
|
||||
|
||||
# no need for document start
|
||||
document-start: disable
|
||||
|
||||
# line length is not important
|
||||
line-length: disable
|
||||
|
||||
# force double quotes everywhere
|
||||
quoted-strings:
|
||||
quote-type: double
|
||||
required: only-when-needed
|
10
README.md
Normal file
10
README.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Renovate presets
|
||||
|
||||
Usage:
|
||||
|
||||
```json
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["local>infrastructure/renovate-config", ":reviewer(stephan.schnabel)"]
|
||||
}
|
||||
```
|
66
default.json
Normal file
66
default.json
Normal file
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"gitAuthor": "Renovate <renovate@kokuwa.io>",
|
||||
"timezone": "Europe/Berlin",
|
||||
"labels": ["renovate", "renovate-manager/{{{manager}}}", "renovate-type/{{{updateType}}}"],
|
||||
"assignees": ["renovate"],
|
||||
"dependencyDashboard": true,
|
||||
"dependencyDashboardLabels": ["renovate"],
|
||||
"dependencyDashboardApproval": true,
|
||||
"dependencyDashboardAutoclose": false,
|
||||
"dependencyDashboardHeader": "",
|
||||
"dependencyDashboardFooter": "",
|
||||
"separateMajorMinor": true,
|
||||
"separateMinorPatch": true,
|
||||
"separateMultipleMinor": true,
|
||||
"separateMultipleMajor": true,
|
||||
"pinDigests": true,
|
||||
"automerge": false,
|
||||
"automergeStrategy": "fast-forward",
|
||||
"rebaseWhen": "behind-base-branch",
|
||||
"platformAutomerge": true,
|
||||
"semanticCommits": "enabled",
|
||||
"commitMessageExtra": "from {{{version}}} to {{#if isPinDigest}}{{{newDigestShort}}}{{else}}{{#if isMajor}}{{prettyNewMajor}}{{else}}{{#if isSingleVersion}}{{prettyNewVersion}}{{else}}{{#if newValue}}{{{newValue}}}{{else}}{{{newDigestShort}}}{{/if}}{{/if}}{{/if}}{{/if}}",
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "Automerge kustomize digests.",
|
||||
"matchManagers": ["kustomize"],
|
||||
"matchUpdateTypes": ["digest"],
|
||||
"dependencyDashboardApproval": false,
|
||||
"automergeType": "branch",
|
||||
"automerge": true,
|
||||
"ignoreTests": true
|
||||
},{
|
||||
"description": "Add depdendency from to commit messages.",
|
||||
"matchUpdateTypes": ["patch", "minor", "major"],
|
||||
"commitMessageExtra": "from {{{displayFrom}}} to {{{displayTo}}}"
|
||||
},{
|
||||
"description": "Create pr's for patches/digests and automerge.",
|
||||
"matchUpdateTypes": ["patch", "digest", "pin", "lockFileMaintenance"],
|
||||
"dependencyDashboardApproval": false,
|
||||
"automerge": true
|
||||
},{
|
||||
"description": "Create pr's for minor updates without approval.",
|
||||
"matchUpdateTypes": ["minor"],
|
||||
"dependencyDashboardApproval": false
|
||||
},{
|
||||
"description": "Do not pin woodpecker images because this would produce a lot of noise.",
|
||||
"matchManagers": ["woodpecker"],
|
||||
"pinDigests": false
|
||||
},{
|
||||
"description": "Ignore preset manager",
|
||||
"matchManagers": ["renovate-config-presets"],
|
||||
"enabled": false
|
||||
},{
|
||||
"description": "Ignore github actions",
|
||||
"matchManagers": ["github-actions"],
|
||||
"enabled": false
|
||||
},{
|
||||
"matchDatasources": ["maven"],
|
||||
"registryUrls": ["http://mirror.woodpecker.svc.cluster.local/maven2"]
|
||||
},{
|
||||
"matchDatasources": ["npm"],
|
||||
"registryUrls": ["http://mirror.woodpecker.svc.cluster.local/npm"]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue