+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- ignore files in gitignore also for pipeline_if_empty_null lint test ([#3722](https://github.com/nf-core/tools/pull/3722))
- do not check pytest_modules.yml file, deprecating ([#3748](https://github.com/nf-core/tools/pull/3748))
- Use the org from the .nf-core.yml when linting manifest name and homePage. ([#3767](https://github.com/nf-core/tools/pull/3767))
- Use the org from .nf-core.yml when linting multiqc_config report_comment ([#3800](https://github.com/nf-core/tools/pull/3800))

### Modules

Expand Down
12 changes: 10 additions & 2 deletions nf_core/pipelines/lint/multiqc_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import yaml

from nf_core.pipelines.lint_utils import ignore_file
from nf_core.utils import load_tools_config


def multiqc_config(self) -> dict[str, list[str]]:
Expand Down Expand Up @@ -98,17 +99,24 @@ def multiqc_config(self) -> dict[str, list[str]]:
if "report_comment" not in ignore_configs:
# Check that the minimum plugins exist and are coming first in the summary
version = self.nf_config.get("manifest.version", "").strip(" '\"")

# Get the org from .nf-core.yml config, defaulting to "nf-core"
_, nf_core_yaml_config = load_tools_config(self.wf_path)
org_name = "nf-core"
if nf_core_yaml_config and getattr(nf_core_yaml_config, "template", None):
org_name = getattr(nf_core_yaml_config.template, "org", org_name) or org_name

if "dev" in version:
version = "dev"
report_comments = (
f'This report has been generated by the <a href="https://github.com/nf-core/{self.pipeline_name}/tree/dev" target="_blank">nf-core/{self.pipeline_name}</a>'
f'This report has been generated by the <a href="https://github.com/{org_name}/{self.pipeline_name}/tree/dev" target="_blank">{org_name}/{self.pipeline_name}</a>'
f" analysis pipeline. For information about how to interpret these results, please see the "
f'<a href="https://nf-co.re/{self.pipeline_name}/dev/docs/output" target="_blank">documentation</a>.'
)

else:
report_comments = (
f'This report has been generated by the <a href="https://github.com/nf-core/{self.pipeline_name}/releases/tag/{version}" target="_blank">nf-core/{self.pipeline_name}</a>'
f'This report has been generated by the <a href="https://github.com/{org_name}/{self.pipeline_name}/releases/tag/{version}" target="_blank">{org_name}/{self.pipeline_name}</a>'
f" analysis pipeline. For information about how to interpret these results, please see the "
f'<a href="https://nf-co.re/{self.pipeline_name}/{version}/docs/output" target="_blank">documentation</a>.'
)
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载