Skip to content

Commit 9bff2b9

Browse files
authored
Merge pull request nf-core#3680 from nf-core/crossorg_yaml_validation
Validation of meta.yaml in cross-org repos
2 parents 7af69f1 + ae7ca23 commit 9bff2b9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
- don't read param expressions with spaces as params ([#3674](https://github.com/nf-core/tools/pull/3674))
1818
- Update marocchino/sticky-pull-request-comment digest to 7737449 ([#3681](https://github.com/nf-core/tools/pull/3681))
19+
- Validation of meta.yaml in cross-org repos ([#3680](https://github.com/nf-core/tools/pull/3680))
1920

2021
## [v3.3.2 - Tungsten Tamarin Patch 2](https://github.com/nf-core/tools/releases/tag/3.3.2) - [2025-07-08]
2122

nf_core/subworkflows/lint/meta_yml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def meta_yml(subworkflow_lint_object, subworkflow, allow_missing: bool = False):
115115
# join included modules and included subworkflows in a single list
116116
included_components_names = [component["name"] for component in included_components]
117117
if "components" in meta_yaml:
118-
meta_components = [x for x in meta_yaml["components"]]
118+
meta_components = [x if isinstance(x, str) else list(x)[0] for x in meta_yaml["components"]]
119119
for component in set(included_components_names):
120120
if component in meta_components:
121121
subworkflow.passed.append(

0 commit comments

Comments
 (0)