nf-core-bot
The nf-core-bot can automate code fixes and other actions in pull requests. You trigger these commands by commenting on the PR with specific keywords.
Command availability varies by repository.
Check the repository’s .github/workflows/ directory to see which bot commands are configured.
Available commands
@nf-core-bot fix linting
When prettier reports code formatting issues, you can automatically fix them by commenting:
@nf-core-bot fix lintingThis will start a GitHub Actions workflow that will:
- React with 👀
- Run prettier
- Commit changes
- Push them to the repository
- React with 👍🏻 if everything goes well
Available for:
@nf-core-bot update gpu snapshot
To update outdated nf-test snapshots for GPU-based tests, comment on the PR:
@nf-core-bot update gpu snapshotWithout a path, the bot updates the snapshots of the GPU tests related to the changes in the PR.
It finds tests tagged gpu or gpu_highmem.
To limit the update to specific tests, add a path and, optionally, an extra tag:
@nf-core-bot update gpu snapshot path: $PATH tag: $TAG$PATHis a test file, a directory, or a glob below a component, for example:modules/nf-core/parabricks/applybqsr/tests/main.nf.testmodules/nf-core/parabricks/rnafq2bam/testsmodules/nf-core/parabricks/*
$TAGis an nf-test tag to run in addition togpu, for examplegpu_highmem.
The command must be on its own line, in lowercase, with a space after path: and tag:, and path: before tag:.
Paths must start with modules/nf-core/<name> or subworkflows/nf-core/<name>.
The workflow will:
- React with 👀
- Run the selected tests with
--update-snapshoton a GPU runner (a larger one forgpu_highmemtests) - Commit and push the changed snapshots
If the command is invalid, no tests match, or a step fails, the bot reacts with 👎. Check the workflow run for details.
The bot only updates existing snapshot files and only changes snapshots of the tests that were run.
Available for: nf-core/modules.
@nf-core-bot update changelog
To update the auto-generated changelog entry with a new PR title, comment:
@nf-core-bot update changelog $NEW_TITLEThis updates the changelog entry using the PR title, or the value of $NEW_TITLE if provided.
Available for nf-core/tools.
@nf-core-bot update snapshots
When Textual snapshot tests fail (from tests/pipelines/test_crate_app.py), an HTML report is generated and uploaded as an artifact.
To automatically update the snapshots, comment:
@nf-core-bot update snapshotsAlways review the HTML report to verify the changes are expected before merging.
Available for nf-core/tools.