Introduction
To make certain GitHub actions steps a bit easier, there are certain commands that trigger certain code fixes. You trigger these commands by adding a comment to the Pull Request starting with the specified words.
Not all repositories have the same commands available.
Available commands
@nf-core-bot fix linting
Anytime prettier complains about some incorrect code formatting, you can trigger a fix by adding the following comment to the Pull Request:
@nf-core-bot fix linting
This will start a GitHub Actions workflow that will first react with 👀, run prettier, commit the changes, push them to the repository and then react with 👍🏻 if everything went well.
Available in all nf-core pipelines, nf-core/modules, nf-core/tools and nf-core/website.
@nf-core-bot update gpu snapshot path: $PATH
To update outdated nf-test snapshots for GPU-based tests, you can add the following comment to the Pull Request:
@nf-core-bot update gpu snapshot path: $PATH
where $PATH
is the path to the test file, e.g. modules/nf-core/parabricks/applybqsr/tests/main.nf.test
.
This will start a GitHub Actions workflow that will first react with 👀, commit the changes and push them to the repository and then react with 🎉 if everything went well.
Available in nf-core/modules.
@nf-core-bot update changelog
To update the auto-generated changelog entry after you updated the title (or by adding it after the magic words), you can add the following comment to the Pull Request:
@nf-core-bot update changelog $NEW_TITLE
This will update the changelog entry with the title of the Pull Request or the value of $NEW_TITLE
if provided.
Available in nf-core/tools.
@nf-core-bot update snapshots
If the Textual snapshots (run by tests/pipelines/test_crate_app.py
) fail, an HTML report is generated and uploaded as an artifact.
You can automatically update the snapshots from the PR by posting a comment with the magic words:
@nf-core-bot update snapshots
Please always check the HTML report to make sure that the changes are expected.
Available in nf-core/tools.