Keep indentation in yaml? #28583
-
What would you like help with?I would like help with my configuration How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitHub Please tell us more about your question or problemI am trying to update my helm kubeStateMetrics:
image:
repository: oss/kubernetes/kube-state-metrics
tag: v2.10.1
digest: sha256:60d22fe400d408402c0ffd6394da668b87d402bbdf2f85318c8c832fc2174eb5 This is almost works but the indentation is not kept after the PR is created. Here is my config: {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"regex": {
"pinDigests": true
},
"enabledManagers": [
"custom.regex"
],
"branchConcurrentLimit": 10,
"prConcurrentLimit": 10,
"prHourlyLimit": 5,
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^values\\.yaml$",
"kubernetes/(.*)/values.yaml$",
"kubernetes/(?:[^/]+/)*values.yaml$"
],
"matchStrings": [
"image:\\n\\s+repository: (?<depName>\\S+)\\n\\s+tag: (?<currentValue>\\S+)\\n\\s+digest: (?<currentDigest>sha256:[a-f0-9]+)"
],
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
}
]
} The PR that is created: How can I fix this and add 4 whitespaces? Logs (if relevant)n/a |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Everyone reading this: To spare the maintainers of this project from excessive spam, please don't mention them. They are actively following this repo and there is no need to spam them |
Beta Was this translation helpful? Give feedback.
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. To get started, please read our guide on creating a minimal reproduction. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Closing, seems to be working now 👍 with this config Created a repro repo https://github.com/na-jakobs/renovate-repro-28583 and ran Renovate locally, output:
And RenovateBot created this PR: https://github.com/na-jakobs/renovate-repro-28583/pull/1/files |
Beta Was this translation helpful? Give feedback.
Closing, seems to be working now 👍 with this config
Created a repro repo https://github.com/na-jakobs/renovate-repro-28583 and ran Renovate locally, output: