-
Notifications
You must be signed in to change notification settings - Fork 253
Fix Vale action configuration for GitHub PR reviews #3509
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
base: main
Are you sure you want to change the base?
Conversation
- Fix Vale action version from @reviewdog to @v2.1.1 - Add proper workflow permissions for PR interactions - Install mdx2vast globally for MDX format support - Simplify files parameter to comma-separated format - Add debug step to verify Vale and mdx2vast setup - Enhance .vale.ini with better file patterns and warning level - Expand vocabulary with nf-core ecosystem terms - Add Vale to pre-commit hooks for local development 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
✅ Deploy Preview for nf-core-main-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
a62cdae to
1e6e83d
Compare
Successfully forked and enhanced mdx2vast to support nf-core's custom
remark directive syntax like :::tip{title='Examples' collapse}.
Changes:
- Fork mdx2vast from jdkato/mdx2vast to edmundmiller/mdx2vast
- Add micromark-extension-directive and mdast-util-directive dependencies
- Implement containerDirective, leafDirective, textDirective handling
- Convert directives to HTML divs with proper classes and data attributes
- Update Vale workflow to use custom fork instead of original package
This resolves the MDX parsing runtime errors that were preventing Vale
from processing .mdx files with custom Astro directive syntax. Vale now
successfully lints MDX content and provides proper style feedback.
0191a3a to
12f1e7f
Compare
12f1e7f to
1a86a29
Compare
|
We can either turn off the "pre-commit run all" or make a follow-up PR, or ignore all of the current errors or fix them. Whatever y'all want to do. |
|
@nf-core-bot fix linting |
|
I didn't know you could do that! 👀 |
|
This looks good to me... if it's still too noisy, we can roll it back. |
| nf-core | ||
| Nextflow | ||
| Seqera | ||
| SeqeraLabs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| SeqeraLabs | |
| SeqeraLabs |
I'm not sure we need this, but it's not a blocker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh we should actually not accept that.
Maybe in the links to GitHub repos?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't actually know how Vale reconciles code. If we are referring to SeqeraLabs, it's probably as part of a repository, so it should be in seqeralabs. Anything else should be Seqera.
c4f5a6e to
5606726
Compare
Summary
mdx2vastChanges
GitHub Workflow (.github/workflows/linting.yml)
@reviewdogto@v2.1.1pull-requests: writeandchecks: writefor PR interactionsmdx2vastglobally to enable Vale MDX parsingVale Configuration (.vale.ini)
Custom Vocabulary (.github/styles/config/vocabularies/Docs/accept.txt)
Pre-commit Integration (.pre-commit-config.yaml)
Why These Changes
The original issue was that Vale wasn't showing up in GitHub PR reviews. Root causes:
@reviewdogis not a valid Vale action versionmdx2vastto parse .mdx files${{inputs.DOC_SRC}}was undefined@netlify /docs/contributing/project_proposals