Update renovate regex to handle sylva-core source_templates exception
What does this MR do and why?
@tmmorin noticed this strange MR from renovate: !2814 (comment 2086424518)
this MR was wrongly created due to the merge of : !2794 (diffs) which change the definition of sylva-core source_template.
Due to this change the regex that try to identify the source_templates and their related url / reference broke leading to have sylva-core dependency using the tag of capi-rancher-import:
This MR fix it by adding the match of commit:
Test coverage
see: https://regex101.com/r/UHXOfk/1
Local test of renovate with this config:
{
"depName": "https://gitlab.com/sylva-projects/sylva-core.git",
"currentValue": "not-a-real-commit",
"datasource": "git-tags",
"replaceString": "\n url: https://gitlab.com/sylva-projects/sylva-core.git\n ref:\n # the sylva-core framework will always override this ref so that the\n # currently checked out commit of sylva-core is used by sylva-units\n # (you can grep the code for \"CURRENT_COMMIT\" to find out how)\n commit: not-a-real-commit\n",
"updates": [],
"packageName": "https://gitlab.com/sylva-projects/sylva-core.git",
"versioning": "semver-coerced",
"warnings": [],
"skipReason": "invalid-value"
},
{
"depName": "https://gitlab.com/sylva-projects/sylva-elements/helm-charts/capi-rancher-import.git",
"currentValue": "0.1.5",
"datasource": "git-tags",
"replaceString": "\n url: https://gitlab.com/sylva-projects/sylva-elements/helm-charts/capi-rancher-import.git\n ref:\n tag: 0.1.5\n",
"updates": [],
"packageName": "https://gitlab.com/sylva-projects/sylva-elements/helm-charts/capi-rancher-import.git",
"versioning": "semver-coerced",
"warnings": [],
"sourceUrl": "https://gitlab.com/sylva-projects/sylva-elements/helm-charts/capi-rancher-import",
"currentVersion": "0.1.5",
"fixedVersion": "0.1.5"
},
as not-a-real-commit is not a semver tags it will be ignored