-
Notifications
You must be signed in to change notification settings - Fork 65
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
feat: Adding vale linter #198
Conversation
This reverts commit 98f6a72.
👷 Deploy request for docs-open pending review.Visit the deploys page to approve it
|
.github/workflows/compliance.yml
Outdated
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: errata-ai/vale-action@reviewdog | ||
files: "* .md" |
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.
This should be:
- uses: errata-ai/vale-action@reviewdog
with:
files: "* .md"
And it looks like the value for files should be a path: https://github.com/errata-ai/vale-action#files-default-all
Co-authored-by: Nick McCurdy <nick@nickmccurdy.com>
Co-authored-by: Kyle a.k.a. TechSquidTV <KyleTryon@users.noreply.github.com>
@CBID2 how's this going? |
@CBID2 when you get a chance, share what you've tried and where you've looked in their docs and maybe we can point you in the right direction. Also, let us know how you're testing it. |
Hey @CBID2 are you still working on this issue? |
Yeah I am @BekahHW. I just learned about this in Vale's documentation: https://vale.sh/generator/ |
Can you explain what that is and why we need it? I need some more context before I look at it. |
It's a generator that creates the config files for Vale based on the style guides people choose (e.g., Google and Microsoft) and the static generators that is used (e.g., Hugo). Does that make more sense now @BekahHW? |
I'm going to go ahead and close this as it's been open since Oct 2023. Feel free to reopen if you plan to continue working on this. |
Hey @nickytonline. I think I found a possible solution. Can you make a PR on my test repo again: https://github.com/CBID2/github-actions-test-for-vale |
Hey @CBID2, If you can't get this resolved in the next week, let's let someone else try taking on the issue, since you've had it since October. |
Hi @BekahHW. I made some new updates to my test repo, and was hoping that Nick would do another PR to it but I never got a response. Can you try it: https://github.com/CBID2/github-actions-test-for-vale |
I saw that Ryan submitted a PR that failed. That's why I didn't. |
Thanks for pointing it out @BekahHW. Just checked it out |
Hey @BekahHW. To update you, I worked on my test branch with someone at Virtual Coffee and here's a solution we came up with: https://github.com/CBID2/github-actions-test-for-vale/pull/10/checks |
There's no point in adding it if it's only partially working. I don't see where it's reporting the file errors in what you linked. I see changes to the GitHub action file in that PR, but that's it. It should look like this like they have in their docs. Do you have a test PR in your repo showing where it displays lint errors in some text? |
Here's what I am referring to @nickytonline |
Hi @nickytonline! :) I have good news! :) I managed to get Vale to work via this PR: CBID2/github-actions-test-for-vale#13 (comment) |
Hey @nickytonline. Somehow in my test repo, the errors have appeared in the log but the annotations have appeared on the present file and not the one I’m pushing. I raised an issue about this to Vale’s repo, so hopefully, I'll get a response |
Description
This PR adds the code for the Vale linter GitHub Action to the
compliance.yml
file. This addition will ease the process of maintaining docs in regards to checking for Markdown errors.What type of PR is this? (check all applicable)
Related Tickets & Documents
Closes #178
Mobile & Desktop Screenshots/Recordings
Added tests?
Update 10/24/22
Per @nickytonline's suggestion, I'm testing the Vale Linter GitHub action in this test repo. So far, I used this method to place the action's suggested code into the
compliance.yml
file.What's weird is that I got this result when I copied the code in a YML validator
But got these results in my terminal
Hopefully, things will be better tomorrowUpdate 10/30/23
I reread the documentation for the GitHub Action and apparently, it is recommended to follow this repo style:
Now the hard part is figuring out what to put in the
vocab.txt
. 🤔Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
Once the PR is merged, make sure to click on Read and write permissions in action settings.
[optional] What gif best describes this PR or how it makes you feel?