Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.9.0 #725

Merged
merged 127 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from 118 commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
e89a674
bump-version 2.9.0dev
d4straub Jan 16, 2024
2da3147
Merge pull request #692 from d4straub/bump-version-2.9.0dev
d4straub Jan 17, 2024
0d8dce4
Template update for nf-core/tools version 2.12
nf-core-bot Jan 29, 2024
1d3c72d
template update 2.12
d4straub Feb 1, 2024
d19bdac
fix indent and trailing whitespace
d4straub Feb 1, 2024
e0f0e76
fix software versions in nf.test.snap
d4straub Feb 1, 2024
ae32e2c
fix prettier
d4straub Feb 1, 2024
fe61543
fix linting: ignore params.report_*
d4straub Feb 1, 2024
039ca64
fix prettier
d4straub Feb 1, 2024
93a5869
update subworkflow fasta_newick_epang_gappa
d4straub Feb 1, 2024
bc1a10e
Merge pull request #697 from d4straub/merging-template-updates-2.12
d4straub Feb 1, 2024
bbd5518
fix README badges
d4straub Feb 2, 2024
37bf03f
update CHANGELOG
d4straub Feb 5, 2024
effb048
fix typo
d4straub Feb 5, 2024
376c2de
add --save_intermediates
d4straub Feb 5, 2024
5fa1d1d
fix unused line
d4straub Feb 5, 2024
117e426
move primers to meta map
d4straub Feb 5, 2024
2aa390c
Merge pull request #699 from d4straub/fix-readme-and-nextflow_schema
d4straub Feb 6, 2024
739ccbd
apply harshil alignment
d4straub Feb 6, 2024
2a23b1b
Merge pull request #700 from d4straub/export-more-qza
d4straub Feb 6, 2024
c26cbac
Merge branch 'dev' of https://github.com/nf-core/ampliseq into add-mu…
d4straub Feb 6, 2024
3f16376
process regions with --input_mutiregion
d4straub Feb 6, 2024
45fefd4
fix when no primers are given
d4straub Feb 7, 2024
715ae05
produce per-region ASV tables and fasta
d4straub Feb 7, 2024
0f04676
adjust container and input
d4straub Feb 8, 2024
aa1ff5a
add SIDLE workflow from d4straub/pipesidle
d4straub Feb 9, 2024
afbb18f
add sidle reference taxonomy entries & custom input
d4straub Feb 9, 2024
a8bc971
fix prettier
d4straub Feb 9, 2024
0185e0c
plugin sidle output to downstream analysis
d4straub Feb 22, 2024
5b4d4d0
--sidle_ref_taxonomy greengenes works
d4straub Feb 23, 2024
fdb8d68
Add multiregion test
d4straub Mar 8, 2024
74de9fb
update documentation and changelog
d4straub Mar 8, 2024
2b72e2a
Fix prettier
d4straub Mar 8, 2024
1617780
update README
d4straub Mar 8, 2024
f68b18a
add smaller test database
d4straub Mar 8, 2024
c26a2c2
make sidle_ref_taxonomy entry tree_qza optional
d4straub Mar 8, 2024
6b7a5a4
Fix prettier
d4straub Mar 8, 2024
2370c40
update multiregion nf.test
d4straub Mar 11, 2024
35b0ddc
update multiregion.nf.test.snap
d4straub Mar 11, 2024
5bdb033
correct multiregion.nf.test
d4straub Mar 11, 2024
cd30e46
fix sidle silva ref db
d4straub Mar 11, 2024
cef0875
adjust settings based on ref db
d4straub Mar 11, 2024
d6a6939
silva ref db works
d4straub Mar 13, 2024
221a554
cleanup
d4straub Mar 13, 2024
dd3698e
check incompatible params with sidle
d4straub Mar 13, 2024
8c711a7
fix overzealous check
d4straub Mar 13, 2024
256fc6b
removed phytoref
Mar 18, 2024
9f25806
CHANGELOG
Mar 18, 2024
5b5cd78
updated changelog
Mar 18, 2024
77e03b1
re-arrange param documentation and rename --input_multiregion to --mu…
d4straub Mar 18, 2024
3f4a64e
removed phytoref from schema.json
Mar 18, 2024
8575090
prevent execution with conda
d4straub Mar 18, 2024
daa9dce
Update CHANGELOG.md
danilodileo Mar 18, 2024
e366469
Merge pull request #710 from danilodileo/remove-phytoref
d4straub Mar 18, 2024
85791f9
updated code for collecting data from gtdb
Mar 18, 2024
48d02b8
updated comment
Mar 18, 2024
0f4346c
updated CHANGELOG
Mar 18, 2024
dc5e8a3
remove empty lines
d4straub Mar 18, 2024
6e727a4
Merge pull request #702 from d4straub/add-multiple-regions-analysis
d4straub Mar 18, 2024
922b391
Merge pull request #711 from danilodileo/fix-gtdb-bacteria-info-only
d4straub Mar 18, 2024
65e4209
add subworkflows and include functions
d4straub Mar 18, 2024
d9c7b59
move all custom functions from lib to utils
d4straub Mar 18, 2024
f0bc0b5
remove lib and references to it
d4straub Mar 18, 2024
33ccad2
Template update for nf-core/tools version 2.13.1
d4straub Mar 18, 2024
c508a18
merge template update 2.13.1
d4straub Mar 19, 2024
95918b2
fix linting
d4straub Mar 19, 2024
db4ec6b
fix summary report
d4straub Mar 19, 2024
656c56c
remove redundant sample sheet parsing
d4straub Mar 19, 2024
9912514
update CHANGELOG and README
d4straub Mar 19, 2024
8e2da36
keep software_versions.yml
d4straub Mar 19, 2024
3207215
remove software versions string from nf-test
d4straub Mar 19, 2024
54e28be
use smaller unite db for test profiles
d4straub Mar 19, 2024
2756612
use sintax instead of dada to satisfy memory limit
d4straub Mar 19, 2024
d0e02f1
disable addsh and correct expected files
d4straub Mar 19, 2024
aba8c0b
further adapt expected files by tests
d4straub Mar 19, 2024
7f3e4b6
Apply suggestions from code review
d4straub Mar 20, 2024
d05e42e
Merge pull request #713 from d4straub/update-template-2.13.1
d4straub Mar 20, 2024
7466813
fix vsearch cluster filtering
d4straub Mar 20, 2024
583deca
Update CHANGELOG.md
d4straub Mar 20, 2024
f4ac5f6
Merge pull request #715 from d4straub/fix-vsearch-cluster
d4straub Mar 25, 2024
eecf6cc
Fix file sorting with radix method
d4straub Mar 25, 2024
152331d
Merge pull request #717 from d4straub/fix-file-sorting-wit-radix
d4straub Mar 25, 2024
f15c9dd
Require a minimum sequence length of 50bp after ITSx
d4straub Mar 25, 2024
c828ef4
Merge pull request #718 from d4straub/fix-itsx-short-sequences
d4straub Mar 26, 2024
34458bc
export all versions
d4straub Mar 26, 2024
63a0707
update CHANGELOG
d4straub Mar 26, 2024
7932b84
update nf-core modules
d4straub Mar 26, 2024
8c0200c
update phyloseq
d4straub Mar 26, 2024
dc4067f
update DADA2
d4straub Mar 26, 2024
bc02894
update CHANGELOG
d4straub Mar 26, 2024
2e29f65
fix groovyjarjarantlr4.v4.runtime.LexerNoViableAltException
d4straub Mar 26, 2024
7ceb8ab
update CHANGELOG
d4straub Mar 26, 2024
7a27dc4
fix prettier
d4straub Mar 26, 2024
c7af669
update nf.test.snap md5sums
d4straub Mar 26, 2024
42a7556
Update summarize_barrnap.py
vaulot Mar 26, 2024
0cb077e
update another .snap
d4straub Mar 26, 2024
a9a6d82
Merge pull request #721 from d4straub/fix-groovyjarjarantlr4.v4.runti…
d4straub Mar 26, 2024
76bbddd
Update summarize_barrnap.py
vaulot Mar 26, 2024
dd7272e
Update CHANGELOG.md
vaulot Mar 26, 2024
3a3532d
Merge branch 'dev' into dev
d4straub Mar 26, 2024
0baff8a
fix versions in format taxonomy scripts
d4straub Mar 26, 2024
0297f1a
Merge branch 'dev' of https://github.com/nf-core/ampliseq into export…
d4straub Mar 26, 2024
0926dc2
Merge pull request #722 from vaulot/dev
d4straub Mar 26, 2024
0c24ff3
Merge pull request #719 from d4straub/export-all-versions
d4straub Mar 26, 2024
717aa49
Merge branch 'dev' of https://github.com/nf-core/ampliseq into update…
d4straub Mar 26, 2024
43378b5
Merge pull request #720 from d4straub/update-modules
d4straub Mar 26, 2024
a7609e0
update params docs
d4straub Mar 27, 2024
9c7f78c
re-do workflow figure
d4straub Mar 27, 2024
e575b85
update CHENGALOG
d4straub Mar 27, 2024
b3af0be
improve figure
d4straub Mar 27, 2024
6f0b65a
adjust figure
d4straub Mar 27, 2024
db4cc0a
Merge pull request #723 from d4straub/update-param-docu-2.9.0
d4straub Mar 27, 2024
3b0ea74
bump version to 2.9.0
d4straub Mar 27, 2024
d6cf941
fix typo
d4straub Mar 27, 2024
08db42e
Merge pull request #724 from d4straub/bump-version-2.9.0
d4straub Mar 28, 2024
8a0f5f2
fix Download Pipeline Workflow
d4straub Mar 28, 2024
1c5ea7c
Apply suggestions from code review
d4straub Mar 28, 2024
3f2f466
Merge pull request #726 from d4straub/fix-Download-Pipeline-Workflow
d4straub Mar 28, 2024
a060f2f
Apply suggestions from code review
d4straub Apr 2, 2024
53cb658
Update nextflow.config
d4straub Apr 2, 2024
4a11f03
Fix linting in release-announcements.yml
d4straub Apr 2, 2024
92b3984
add pattern to sidle_ref_tree_custom
d4straub Apr 2, 2024
c9def1d
update CHANGELOG
d4straub Apr 2, 2024
066df3d
fix pattern
d4straub Apr 2, 2024
b68e479
Merge pull request #728 from d4straub/update-nextflowschema
d4straub Apr 2, 2024
b42e8f0
retrieve sidle container from quay.io/nf-core
d4straub Apr 2, 2024
4707d38
Merge pull request #729 from d4straub/pipesidle-container
d4straub Apr 2, 2024
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
10 changes: 1 addition & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/opt/conda/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.autopep8Path": "/opt/conda/bin/autopep8",
"python.formatting.yapfPath": "/opt/conda/bin/yapf",
"python.linting.flake8Path": "/opt/conda/bin/flake8",
"python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle",
"python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle",
"python.linting.pylintPath": "/opt/conda/bin/pylint"
"python.defaultInterpreterPath": "/opt/conda/bin/python"
},

// Add the IDs of extensions you want installed when the container is created.
Expand Down
15 changes: 14 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@ end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
[/subworkflows/nf-core/**]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset

[/assets/email*]
indent_size = unset

# ignore Readme
[README.md]
indent_style = unset

d4straub marked this conversation as resolved.
Show resolved Hide resolved
# ignore python
[*.{py,md}]
indent_style = unset
14 changes: 8 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ Please use the pre-filled template to save time.
However, don't be put off by this template - other more general issues and suggestions are welcome!
Contributions to the code are even more welcome ;)

:::info
If you need help using or modifying nf-core/ampliseq then the best place to ask is on the nf-core Slack [#ampliseq](https://nfcore.slack.com/channels/ampliseq) channel ([join our Slack here](https://nf-co.re/join/slack)).
:::
> [!NOTE]
> If you need help using or modifying nf-core/ampliseq then the best place to ask is on the nf-core Slack [#ampliseq](https://nfcore.slack.com/channels/ampliseq) channel ([join our Slack here](https://nf-co.re/join/slack)).

## Contribution workflow

Expand All @@ -27,8 +26,11 @@ If you're not used to this workflow with git, you can start with some [docs from

## Tests

You can optionally test your changes by running the pipeline locally. Then it is recommended to use the `debug` profile to
receive warnings about process selectors and other debug info. Example: `nextflow run . -profile debug,test,docker --outdir <OUTDIR>`.
You have the option to test your changes locally by running the pipeline. For receiving warnings about process selectors and other `debug` information, it is recommended to use the debug profile. Execute all the tests with the following command:

```bash
nf-test test --profile debug,test,docker --verbose
```

When you create a pull request with changes, [GitHub Actions](https://github.com/features/actions) will run automatic tests.
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
Expand Down Expand Up @@ -90,7 +92,7 @@ Once there, use `nf-core schema build` to add to `nextflow_schema.json`.

Sensible defaults for process resource requirements (CPUs / memory / time) for a process should be defined in `conf/base.config`. These should generally be specified generic with `withLabel:` selectors so they can be shared across multiple processes/steps of the pipeline. A nf-core standard set of labels that should be followed where possible can be seen in the [nf-core pipeline template](https://github.com/nf-core/tools/blob/master/nf_core/pipeline-template/conf/base.config), which has the default process as a single core-process, and then different levels of multi-core configurations for increasingly large memory requirements defined with standardised labels.

The process resources can be passed on to the tool dynamically within the process with the `${task.cpu}` and `${task.memory}` variables in the `script:` block.
The process resources can be passed on to the tool dynamically within the process with the `${task.cpus}` and `${task.memory}` variables in the `script:` block.

### Naming schemes

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/ampl
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/ampliseq/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/ampliseq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] Make sure your code lints (`nf-core lint`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
- [ ] Ensure the test suite passes (`nf-test test main.nf.test -profile test,docker`).
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
- [ ] Usage Documentation in `docs/usage.md` is updated.
- [ ] Output Documentation in `docs/output.md` is updated.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
}
profiles: test_full

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Tower debug log file
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/awstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
}
profiles: test

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Tower debug log file
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets
- name: Post PR comment
if: failure()
uses: mshick/add-pr-comment@v1
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
with:
message: |
## This PR is against the `master` branch :x:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ jobs:
- "test_pacbio_its"
- "test_sintax"
- "test_pplace"
- "test_multiregion"
profile:
- "docker"

steps:
- name: Check out pipeline code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Check out test data
uses: actions/checkout@v3
Expand All @@ -86,6 +87,9 @@ jobs:
with:
version: "${{ matrix.NXF_VER }}"

- name: Disk space cleanup
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1

- name: Install nf-test
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash -s $NFTEST_VER
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clean-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v7
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9
with:
stale-issue-message: "This issue has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment otherwise this issue will be closed in 20 days."
stale-pr-message: "This PR has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment if it is still useful."
Expand Down
83 changes: 83 additions & 0 deletions .github/workflows/download_pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Test successful pipeline download with 'nf-core download'

# Run the workflow when:
# - dispatched manually
# - when a PR is opened or reopened to master branch
# - the head branch of the pull request is updated, i.e. if fixes for a release are pushed last minute to dev.
on:
workflow_dispatch:
inputs:
testbranch:
description: "The specific branch you wish to utilize for the test execution of nf-core download."
required: true
default: "dev"
pull_request:
types:
- opened
- edited
- synchronize
branches:
- master
pull_request_target:
branches:
- master

env:
NXF_ANSI_LOG: false

jobs:
download:
runs-on: ubuntu-latest
steps:
- name: Install Nextflow
uses: nf-core/setup-nextflow@v2

- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
with:
python-version: "3.11"
architecture: "x64"
- uses: eWaterCycle/setup-singularity@931d4e31109e875b13309ae1d07c70ca8fbc8537 # v7
with:
singularity-version: 3.8.3

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/nf-core/tools.git@dev

- name: Get the repository name and current branch set as environment variable
run: |
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> ${GITHUB_ENV}
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV}

- name: Download the pipeline
env:
NXF_SINGULARITY_CACHEDIR: ./
run: |
nf-core download ${{ env.REPO_LOWERCASE }} \
--revision ${{ env.REPO_BRANCH }} \
--outdir ./${{ env.REPOTITLE_LOWERCASE }} \
--compress "none" \
--container-system 'singularity' \
--container-library "quay.io" -l "docker.io" -l "ghcr.io" \
--container-cache-utilisation 'amend' \
--download-configuration

- name: Inspect download
run: tree ./${{ env.REPOTITLE_LOWERCASE }}

- name: Run the downloaded pipeline (stub)
id: stub_run_pipeline
continue-on-error: true
env:
NXF_SINGULARITY_CACHEDIR: ./
NXF_SINGULARITY_HOME_MOUNT: true
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --skip_qiime --outdir ./results
- name: Run the downloaded pipeline (stub run not supported)
id: run_pipeline
if: ${{ job.steps.stub_run_pipeline.status == failure() }}
env:
NXF_SINGULARITY_CACHEDIR: ./
NXF_SINGULARITY_HOME_MOUNT: true
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -profile test,singularity --skip_qiime --outdir ./results
72 changes: 53 additions & 19 deletions .github/workflows/fix-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [created]

jobs:
deploy:
fix-linting:
# Only run if comment is on a PR with the main repo, and if it contains the magic keywords
if: >
contains(github.event.comment.html_url, '/pull/') &&
Expand All @@ -13,43 +13,77 @@ jobs:
runs-on: ubuntu-latest
steps:
# Use the @nf-core-bot token to check out so we can push later
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
token: ${{ secrets.nf_core_bot_auth_token }}

# indication that the linting is being fixed
- name: React on comment
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: eyes

# Action runs on the issue comment, so we don't get the PR by default
# Use the gh cli to check out the PR
- name: Checkout Pull Request
run: gh pr checkout ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}

- uses: actions/setup-node@v4
# Install and run pre-commit
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
with:
python-version: 3.11

- name: Install Prettier
run: npm install -g prettier @prettier/plugin-php
- name: Install pre-commit
run: pip install pre-commit

# Check that we actually need to fix something
- name: Run 'prettier --check'
id: prettier_status
run: |
if prettier --check ${GITHUB_WORKSPACE}; then
echo "result=pass" >> $GITHUB_OUTPUT
else
echo "result=fail" >> $GITHUB_OUTPUT
fi
- name: Run pre-commit
id: pre-commit
run: pre-commit run --all-files
continue-on-error: true

- name: Run 'prettier --write'
if: steps.prettier_status.outputs.result == 'fail'
run: prettier --write ${GITHUB_WORKSPACE}
# indication that the linting has finished
- name: react if linting finished succesfully
if: steps.pre-commit.outcome == 'success'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: "+1"

- name: Commit & push changes
if: steps.prettier_status.outputs.result == 'fail'
id: commit-and-push
if: steps.pre-commit.outcome == 'failure'
run: |
git config user.email "core@nf-co.re"
git config user.name "nf-core-bot"
git config push.default upstream
git add .
git status
git commit -m "[automated] Fix linting with Prettier"
git commit -m "[automated] Fix code linting"
git push

- name: react if linting errors were fixed
id: react-if-fixed
if: steps.commit-and-push.outcome == 'success'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: hooray

- name: react if linting errors were not fixed
if: steps.commit-and-push.outcome == 'failure'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: confused

- name: react if linting errors were not fixed
if: steps.commit-and-push.outcome == 'failure'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
@${{ github.actor }} I tried to fix the linting errors, but it didn't work. Please fix them manually.
See [CI log](https://github.com/nf-core/ampliseq/actions/runs/${{ github.run_id }}) for more details.
Loading
Loading