Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
--pull-request \
--username nf-core-bot \
--github-repository nf-core/${{ matrix.pipeline }}
--blogpost ${{inputs.blogpost}}
--blogpost ${{inputs.blog_post}}

- name: Upload sync log file artifact
if: ${{ always() }}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# nf-core/tools: Changelog

## [v3.5.0 - Terne Topi](https://github.com/nf-core/tools/releases/tag/3.5.1) - [2025-11-19]

### General

- Fix `blog_post` parameter for `nf-core pipelines sync` command ([#3911](https://github.com/nf-core/tools/pull/3911))

## [v3.5.0 - Terne Topi](https://github.com/nf-core/tools/releases/tag/3.5.0) - [2025-11-19]

### General
Expand Down
7 changes: 5 additions & 2 deletions nf_core/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,16 @@ def rocrate(
@click.option("-g", "--github-repository", type=str, help="GitHub PR: target repository.")
@click.option("-u", "--username", type=str, help="GitHub PR: auth username.")
@click.option("-t", "--template-yaml", help="Pass a YAML file to customize the template")
@click.option("-b", "--blog-post", type=str, help="Link to the blog post")
def command_pipelines_sync(
ctx, directory, from_branch, pull_request, github_repository, username, template_yaml, force_pr
ctx, directory, from_branch, pull_request, github_repository, username, template_yaml, force_pr, blog_post
):
"""
Sync a pipeline [cyan i]TEMPLATE[/] branch with the nf-core template.
"""
pipelines_sync(ctx, directory, from_branch, pull_request, github_repository, username, template_yaml, force_pr)
pipelines_sync(
ctx, directory, from_branch, pull_request, github_repository, username, template_yaml, force_pr, blog_post
)


# nf-core pipelines bump-version
Expand Down
6 changes: 4 additions & 2 deletions nf_core/commands_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ def pipelines_rocrate(


# nf-core pipelines sync
def pipelines_sync(ctx, directory, from_branch, pull_request, github_repository, username, template_yaml, force_pr):
def pipelines_sync(
ctx, directory, from_branch, pull_request, github_repository, username, template_yaml, force_pr, blog_post
):
"""
Sync a pipeline [cyan i]TEMPLATE[/] branch with the nf-core template.

Expand All @@ -327,7 +329,7 @@ def pipelines_sync(ctx, directory, from_branch, pull_request, github_repository,
is_pipeline_directory(directory)
# Sync the given pipeline dir
sync_obj = PipelineSync(
directory, from_branch, pull_request, github_repository, username, template_yaml, force_pr
directory, from_branch, pull_request, github_repository, username, template_yaml, force_pr, blog_post
)
sync_obj.sync()
except (SyncExceptionError, PullRequestExceptionError) as e:
Expand Down
Loading