Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] trying to add a customDatasource/manager for nextflow plugins #33

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/renovate/default.json5
Original file line number Diff line number Diff line change
Expand Up @@ -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']"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"$[id = 'nf-validation']"
"$[id = {{pluginName}}]"

would like to keep it not plugin specific (nf-prov will probably soon also be in the template)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I would too, just couldn't figure that out last night and my brain gave out from daylight savings 🙃

]

}
],
customManagers: [
Expand Down Expand Up @@ -64,10 +63,9 @@
description: "Check that nf-valdiation plugin is pinned in nextflow.config, i.e. `plugins {id '[email protected]'}`",
fileMatch: ["(^|/)nextflow\\.config$"],
matchStrings: [
"id\\s+'nf-validation@(?<currentValue>\\d+\\.\\d+\\.\\d+)'"
"\\s+id\\s'<depName>@(?<currentValue>.*)'"
],
datasourceTemplate: "github-release",
extractVersion: "/(?<version>\\d+\\.\\d+\\.\\d+)/"
datasourceTemplate: "custom.nextflow-plugin",
},
}
],
Expand Down