Skip to content

Commit

Permalink
feat(renovate): Add rule for kf6-kio (#54)
Browse files Browse the repository at this point in the history
* Testing out renovate for kf6

* Rewrite renovate rules for rpms

* Use extractVersionTemplate to only get <major>.<minor>
  • Loading branch information
ledif authored Dec 5, 2024
1 parent fb67b7a commit 41b640f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@
"#\\s?renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( extractVersion=(?<extractVersion>.*?))?\\s*Version:\\s*(?<currentValue>.*)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
},
{
"customType": "regex",
"fileMatch": [".*\\.spec"],
"matchStrings": [
"# renovate: datasource=yum repo=(?<registryUrl>[^\\s]+) pkg=(?<depName>[^\\s]+)\\s*%global [^\\s]+ (?<currentValue>[^\\s]+)"
],
"datasourceTemplate": "npm",
"extractVersionTemplate": "^(?<version>\\d\\.\\d)",
"versioningTemplate": "loose",
"registryUrlTemplate": "https://yum2npm.io/repos/{{replace '/' '/modules/' registryUrl}}/packages"
}

]
}
2 changes: 2 additions & 0 deletions staging/kf6-kio/kf6-kio.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
%global framework kio

%global stable_kf6 stable

# renovate: datasource=yum repo=fedora-41-x86_64-updates pkg=kf6-kio
%global majmin_ver_kf6 6.8

Name: kf6-%{framework}
Expand Down

0 comments on commit 41b640f

Please sign in to comment.