Skip to content
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

CI: add spellchecking with codespell #287

Merged
merged 2 commits into from
Jun 5, 2023
Merged

CI: add spellchecking with codespell #287

merged 2 commits into from
Jun 5, 2023

Conversation

schurzi
Copy link
Contributor

@schurzi schurzi commented May 1, 2023

No description provided.

@schurzi
Copy link
Contributor Author

schurzi commented May 2, 2023

@artem-sidorenko I have correted the past PRs so the Changelog will be regenerated with the corrections applied. Merging is up to oyu, since you are active here at the moment. I have added the Action to the security list, hope that is ok.

@artem-sidorenko
Copy link
Member

@schurzi many thanks! The intention is to run it on the master branch? Any idea how this is going to work with changelog generator, hence the source are issues/prs and not the file on the master branch?

@schurzi
Copy link
Contributor Author

schurzi commented May 28, 2023

This configuration will check all PRs directed on master and all direct commits done on master. My thought was, that the automatic changelog generator will update the file on master branch and when there are spelling errors a maintainer will get a mail with the failed checks. Then we would need to correct the spelling in the offending issue/pr and the next time, the changelog is generated, it is fixed. I know this is not optimal, but I have no better approach to check all issue and pr titles before generating the changelog and checking it into master. Maybe we can improve the workflow, once we have more experience with it :)

Signed-off-by: Martin Schurz <[email protected]>
Signed-off-by: Martin Schurz <[email protected]>
@artem-sidorenko
Copy link
Member

are this checks part of gh action? I mean, can we integrate it into PR workflow? We would "fix" the master and ensure all new things are passing the spellchecker?

@schurzi
Copy link
Contributor Author

schurzi commented Jun 3, 2023

Yes. The current config defines it as part of PR workflow. The spellcheck will run with every PR that is opened on master and will prevent new spelling errors from files in commits.

see for example here: https://github.com/dev-sec/ansible-collection-hardening/pull/667/checks

@artem-sidorenko
Copy link
Member

@schurzi many thanks for you all your explanations :-) I see, somebody already fixed the PR titles😁

@artem-sidorenko artem-sidorenko merged commit 4032847 into master Jun 5, 2023
@artem-sidorenko artem-sidorenko deleted the codespell branch June 5, 2023 08:49
@artem-sidorenko artem-sidorenko changed the title add spellchecking with codespell CI: add spellchecking with codespell Jun 6, 2023
@dev-sec-bot dev-sec-bot mentioned this pull request Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants