From e20a88a6abc8f5ffc22f8854db8a7c7153e1ec25 Mon Sep 17 00:00:00 2001 From: mashehu Date: Tue, 20 Feb 2024 18:22:26 +0100 Subject: [PATCH 1/2] trying to add a customDatasource/manager for nextflow plugins not really getting everything which is going on here. WIP WIP WIP --- .github/renovate/default.json5 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/renovate/default.json5 b/.github/renovate/default.json5 index f43994d..8fe7638 100644 --- a/.github/renovate/default.json5 +++ b/.github/renovate/default.json5 @@ -18,6 +18,17 @@ "pre-commit": { enabled: true, }, + customDatasources: [ + "nextflow-plugin": { + "defaultRegistryUrlTemplate": "https://api.github.com/repos/nextflow-io/{{pluginName}}/releases" + "format": "json", + "versioning": "semver", + "transformTemplate": [ + "{\"release\": \"{{version}}\", \"releaseTimestamp\": \"{{date}}\"}" + ] + + } + ], customManagers: [ { customType: "regex", @@ -48,6 +59,17 @@ ], datasourceTemplate: "pypi" }, + { + customType: "regex", + description: "Check that nf-valdiation plugin is pinned in nextflow.config, i.e. `plugins {id 'nf-validation@1.1.3'}`", + fileMatch: ["(^|/)nextflow\\.config$"], + matchStrings: [ + "id\\s+'nf-validation@(?\\d+\\.\\d+\\.\\d+)'" + ], + datasourceTemplate: "github-release", + extractVersion: "/(?\\d+\\.\\d+\\.\\d+)/" + }, + } ], packageRules: [ { From de1390924d6c161ecd567e0c3f9ac493281ad0ce Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Sun, 10 Mar 2024 21:38:57 -0500 Subject: [PATCH 2/2] Attempt at using custom.nextflow-plugin --- .github/renovate/default.json5 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/renovate/default.json5 b/.github/renovate/default.json5 index 8fe7638..090d014 100644 --- a/.github/renovate/default.json5 +++ b/.github/renovate/default.json5 @@ -20,13 +20,12 @@ }, customDatasources: [ "nextflow-plugin": { - "defaultRegistryUrlTemplate": "https://api.github.com/repos/nextflow-io/{{pluginName}}/releases" + "defaultRegistryUrlTemplate": "https://raw.githubusercontent.com/nextflow-io/plugins/main/plugins.json" "format": "json", "versioning": "semver", "transformTemplate": [ - "{\"release\": \"{{version}}\", \"releaseTimestamp\": \"{{date}}\"}" + "$[id = 'nf-validation']" ] - } ], customManagers: [ @@ -64,10 +63,9 @@ description: "Check that nf-valdiation plugin is pinned in nextflow.config, i.e. `plugins {id 'nf-validation@1.1.3'}`", fileMatch: ["(^|/)nextflow\\.config$"], matchStrings: [ - "id\\s+'nf-validation@(?\\d+\\.\\d+\\.\\d+)'" + "\\s+id\\s'@(?.*)'" ], - datasourceTemplate: "github-release", - extractVersion: "/(?\\d+\\.\\d+\\.\\d+)/" + datasourceTemplate: "custom.nextflow-plugin", }, } ],