Skip to content

Commit

Permalink
Merge pull request #3176 from nf-core/fix-masto-hashtags
Browse files Browse the repository at this point in the history
Strip hyphens from hashtags for mastodon compatibiluty
  • Loading branch information
mirpedrol committed Sep 19, 2024
2 parents 8e47a33 + 494a03f commit e113f97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
- add option to exclude tower.yml from pipeline template ([#3134](https://github.com/nf-core/tools/pull/3134))
- run nf-core lint `--release` on PRs to master ([#3148](https://github.com/nf-core/tools/pull/3148))
- Add tests to ensure all files are part of a template customisation group and all groups are tested ([#3099](https://github.com/nf-core/tools/pull/3099))
- Fixed release announcement hashtags for Mastodon ([#3099](https://github.com/nf-core/tools/pull/3176))

### Linting

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: get topics and convert to hashtags
id: get_topics
run: |
echo "topics=$(curl -s https://nf-co.re/pipelines.json | jq -r '.remote_workflows[] | select(.full_name == "${{ github.repository }}") | .topics[]' | awk '{print "#"$0}' | tr '\n' ' ')" >> $GITHUB_OUTPUT
echo "topics=$(curl -s https://nf-co.re/pipelines.json | jq -r '.remote_workflows[] | select(.full_name == "${{ github.repository }}") | .topics[]' | awk '{print "#"$0}' | tr '\n' ' ')" | sed 's/-//g' >> $GITHUB_OUTPUT
- uses: rzr/fediverse-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def test_modules_environment_yml_file_sorted_incorrectly(self):
) as fh:
yaml_content = yaml.safe_load(fh)
# Add a new dependency to the environment.yml file and reverse the order
yaml_content["dependencies"].append("z")
yaml_content["dependencies"].append("z=0.0.0")
yaml_content["dependencies"].reverse()
yaml_content = yaml.dump(yaml_content)
with open(
Expand Down

0 comments on commit e113f97

Please sign in to comment.