-
Notifications
You must be signed in to change notification settings - Fork 1
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: Add a step to validate the filename #138
Conversation
* check if the filename follow the convention (kebab-case)
dd1dc01
to
d74930a
Compare
Tested with bonitasoft/bonita-documentation-site#791 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.
LGTM, great work! 🎉
I haven't approved the PR yet, because I'd first like to talk about the current situation:
- the warning message about eventual alias creation
- if we do a manual rename operations in all repositories prior merging/releasing this new feature. This is what was planned in Tool: enforce file name to use kebab-case in documentation content bonita-documentation-site#589
}); | ||
commentBody += ` | ||
> [!warning] | ||
> Additionally, don't forget to add the \`:page-aliases:\` attribute after renaming the **existing files** to avoid broken links or references. `; |
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.
suggestion: Here the warning applies to file that previously existed prior the PR creation.
If the file is a new file created in the PR, there is no need to add an alias (and it shouldn't be added).
Let's talk in person to find a more convenient message.
...s/doc-contribs/pr-antora-content-guidelines-checker/__tests__/steps/PageFilenameStep.test.ts
Show resolved
Hide resolved
Answering to my own questions:
|
* based on feat/check_file_name branch from action repository ### Notes Validate bonitasoft/actions#138 and bonitasoft/actions#140 Cover #589
Covers bonitasoft/bonita-documentation-site#589