From 307d0d4b91729ba9d708f6fbd761414559c45e45 Mon Sep 17 00:00:00 2001 From: mashehu Date: Thu, 12 Dec 2024 16:09:53 +0100 Subject: [PATCH 1/2] only bump ro-crate if it already exists --- nf_core/pipelines/bump_version.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nf_core/pipelines/bump_version.py b/nf_core/pipelines/bump_version.py index de0342c7f..664d7a22a 100644 --- a/nf_core/pipelines/bump_version.py +++ b/nf_core/pipelines/bump_version.py @@ -128,8 +128,9 @@ def bump_pipeline_version(pipeline_obj: Pipeline, new_version: str) -> None: yaml_key=["template", "version"], ) - # update rocrate - ROCrate(pipeline_obj.wf_path).update_rocrate() + # update rocrate if ro-crate is present + if Path(pipeline_obj.wf_path, "ro-crate-metadata.json").exists(): + ROCrate(pipeline_obj.wf_path).update_rocrate() def bump_nextflow_version(pipeline_obj: Pipeline, new_version: str) -> None: From 8c5855f19a12bad41d8db15dc9238b6e89d634d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlia=20Mir=20Pedrol?= Date: Fri, 13 Dec 2024 08:19:50 +0000 Subject: [PATCH 2/2] get max of 100 branch names --- nf_core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nf_core/utils.py b/nf_core/utils.py index 30b074349..dc208c0a7 100644 --- a/nf_core/utils.py +++ b/nf_core/utils.py @@ -1083,7 +1083,7 @@ def get_repo_releases_branches(pipeline, wfs): raise AssertionError(f"Not able to find pipeline '{pipeline}'") # Get branch information from github api - should be no need to check if the repo exists again - branch_response = gh_api.safe_get(f"https://api.github.com/repos/{pipeline}/branches") + branch_response = gh_api.safe_get(f"https://api.github.com/repos/{pipeline}/branches?per_page=100") for branch in branch_response.json(): if ( branch["name"] != "TEMPLATE"