Skip to content

Commit

Permalink
Last fixes for renovate #634
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Oct 5, 2023
1 parent 0a01357 commit cb7d139
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 19 deletions.
16 changes: 16 additions & 0 deletions renovate-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@
"patch": { "labels": [ "bump/patch", "type/renovate" ] },
"pin": { "labels": [ "bump/pin", "type/renovate" ] },
"digest": { "labels": [ "bump/digest", "type/renovate" ] },
"customDatasources": {
"curl": {
"defaultRegistryUrlTemplate": "https://api.github.com/repos/curl/curl/releases",
"format": "json",
"transformTemplates": [
"{ \"releases\": [ $[].{ \"version\": $replace( $substring( tag_name, 5 ), '_', '.' ) } ] }"
]
},
"mu-repo": {
"defaultRegistryUrlTemplate": "https://api.github.com/repos/fabioz/mu-repo/git/matching-refs/tags/mu_repo_",
"format": "json",
"transformTemplates": [
"{ \"releases\": [ $[].{ \"version\": $replace( $substring( ref, 18 ), '_', '.') } ] }"
]
}
},
"packageRules": [
{
"matchDatasources": [ "docker" ],
Expand Down
31 changes: 22 additions & 9 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customDatasources": {
"curl": {
"defaultRegistryUrlTemplate": "https://api.github.com/repos/curl/curl/releases",
"format": "json",
"transformTemplates": [
"{ \"releases\": [ $[].{ \"version\": $replace( $substring( tag_name, 5 ), '_', '.' ) } ] }"
]
},
"mu-repo": {
"defaultRegistryUrlTemplate": "https://api.github.com/repos/fabioz/mu-repo/git/matching-refs/tags/mu_repo_",
"format": "json",
"transformTemplates": [
"{ \"releases\": [ $[].{ \"version\": $replace( $substring( ref, 18 ), '_', '.') } ] }"
]
}
},
"digest": {
"labels": [
"bump/digest",
Expand Down Expand Up @@ -1010,16 +1026,14 @@
]
},
{
"datasourceTemplate": "github-releases",
"datasourceTemplate": "custom.curl",
"depNameTemplate": "curl/curl",
"extractVersionTemplate": "^curl-(?<version>\\d+_\\d+_\\d+?)$",
"fileMatch": [
"^tools/curl/manifest.yaml$"
],
"matchStrings": [
"version: \"?(?<currentValue>.*?)\"?\\n"
],
"versioningTemplate": "regex:^(?<major>\\d+?)_(?<minor>\\d+?)_(?<patch>\\d+?)$"
]
},
{
"datasourceTemplate": "github-releases",
Expand Down Expand Up @@ -4048,16 +4062,14 @@
]
},
{
"datasourceTemplate": "github-tags",
"datasourceTemplate": "custom.mu-repo",
"depNameTemplate": "fabioz/mu-repo",
"extractVersionTemplate": "^mu_repo_(?<version>.+?)$",
"fileMatch": [
"^tools/mu-repo/manifest.yaml$"
],
"matchStrings": [
"version: \"?(?<currentValue>.*?)\"?\\n"
],
"versioningTemplate": "regex:^(?<major>\\d+?)_(?<minor>\\d+?)_(?<patch>\\d+?)$"
]
},
{
"datasourceTemplate": "github-releases",
Expand Down Expand Up @@ -5979,7 +5991,8 @@
],
"matchStrings": [
"version: \"?(?<currentValue>.*?)\"?\\n"
]
],
"versioningTemplate": "loose"
},
{
"datasourceTemplate": "github-tags",
Expand Down
12 changes: 5 additions & 7 deletions tools/curl/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ name: curl
version: "7.87.0"
check: ${binary} --version | grep ^curl | cut -d' ' -f2
platforms:
- linux/amd64
- linux/amd64
#- linux/arm64
tags:
- type/cli
- component/network
- lang/c
- type/cli
- component/network
- lang/c
homepage: https://github.com/curl/curl
description: Tool and library for transferring data with URL syntax
renovate:
datasource: github-releases
datasource: custom.curl
package: curl/curl
extractVersion: ^curl-(?<version>\d+_\d+_\d+?)$
versioning: regex:^(?<major>\d+?)_(?<minor>\d+?)_(?<patch>\d+?)$
priority: low
4 changes: 1 addition & 3 deletions tools/mu-repo/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ tags:
homepage: http://fabioz.github.io/mu-repo
description: Help in dealing with multiple git repositories
renovate:
datasource: github-tags
datasource: custom.mu-repo
package: fabioz/mu-repo
extractVersion: ^mu_repo_(?<version>.+?)$
versioning: regex:^(?<major>\d+?)_(?<minor>\d+?)_(?<patch>\d+?)$
priority: low
1 change: 1 addition & 0 deletions tools/wordcloud/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ description: Little word cloud generator in Python
renovate:
datasource: pypi
package: wordcloud
versioning: loose
priority: low

0 comments on commit cb7d139

Please sign in to comment.