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: Make codespell checks blocking, but only check changed files #76828

Merged
merged 1 commit into from
May 8, 2023

Conversation

akien-mga
Copy link
Member

@akien-mga akien-mga commented May 8, 2023

This should prevent typos from slipping in, while avoiding unnecessarily failing checks on unrelated PRs if some typos do get in by mistake (which seemed to happen frequently when those checks were only showing warnings in the diff view).

Using the method documented in codespell-project/actions-codespell#65

@akien-mga
Copy link
Member Author

Added a typo to test that it works:

image

image

The output could be improved somewhat so that the error suggests that the user can check the diff view of their PR to see where the typos were found. If anyone is interested something like this could be contributed upstream: https://github.com/codespell-project/actions-codespell

@akien-mga akien-mga merged commit 21b6874 into godotengine:master May 8, 2023
@akien-mga akien-mga deleted the ci-codespell-blocking branch May 8, 2023 10:24
@bruvzg
Copy link
Member

bruvzg commented May 8, 2023

Seems like codespell is now checking changed thirdparty files.

Screenshot 2023-05-08 at 13 30 11

@akien-mga
Copy link
Member Author

This should fix it: #76842.

@akien-mga
Copy link
Member Author

Cherry-picked for 4.0.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants