-
Notifications
You must be signed in to change notification settings - Fork 819
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
Make all prdoc valid and add CI job to check prdoc with prdoc check
#7543
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
.github/workflows/checks-quick.yml
Outdated
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc # v4.1.7 | ||
- name: prdoc check |
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.
Why isn't that just part of the CheckPrdoc
job?
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 thought it would be similar to fmt
.
But I refactored and put inside the CheckPrdoc
: basically it was ignoring errors when R0-silent
, I make the check mandatory: 5013295
d891ac9
to
fc47748
Compare
fc47748
to
5013295
Compare
echo "PR detected as silent, but a PRDoc was found, checking it as information" | ||
$ENGINE run --rm -v $PWD:/repo $IMAGE check -n ${GITHUB_PR} || echo "Ignoring failure" | ||
echo "PR detected as silent, but a PRDoc was found, checking it" | ||
$ENGINE run --rm -v $PWD:/repo $IMAGE check -n ${GITHUB_PR} |
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 step checks only if there is a PRdoc for this PR and validates it. If the idea was to check all existing prdocs I'd suggest adding an additional job check-prdoc-all
that will check all prdocs.
Some prdoc are invalid,
prdoc check
is failing for them. This also broke usage of parity-publish.This PR fixes the invalid prdoc, and add a ci job to check the prdoc are valid. I don't think the check is unstable considering it is a simple yaml check, so I put the job as required.