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: Use gh-cli for changed files, and workaround codespell skip list bug #76842

Merged
merged 1 commit into from
May 8, 2023

Conversation

akien-mga
Copy link
Member

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

For PRs, this should give a more accurate list, as the previous method would
diff to the tip of the master branch, which could include new commits (and
thus changed files) not present in the PR branch.

Also works around this upstream codespell bug: codespell-project/codespell#1915

Instead of relying on the skip list for folders, we exclude them manually. .git and bin should never be part of the list of files changed in Git so we don't bother with them.

And works around another misfeature of https://github.com/codespell-project/actions-codespell - the check_hidden optional parameter is considered true if defined, even if set to false... the only way not to enable it is not to mention it.

@akien-mga akien-mga added this to the 4.1 milestone May 8, 2023
@akien-mga akien-mga requested a review from a team as a code owner May 8, 2023 12:50
@akien-mga akien-mga force-pushed the ci-codespell-fix-skip-list branch 2 times, most recently from 9a287bf to 15f666f Compare May 8, 2023 12:55
@akien-mga akien-mga force-pushed the ci-codespell-fix-skip-list branch from 15f666f to df761b8 Compare May 8, 2023 13:28
@akien-mga akien-mga changed the title CI: Workaround codespell skip list not handling folders CI: Use gh-cli for changed files, and workaround codespell skip list bug May 8, 2023
@akien-mga akien-mga force-pushed the ci-codespell-fix-skip-list branch from df761b8 to 8e3598d Compare May 8, 2023 13:29
For PRs, this should give a more accurate list, as the previous method would
diff to the tip of the `master` branch, which could include new commits (and
thus changed files) not present in the PR branch.

codespell's `--skip` option doesn't work at all with folders when used
together with an explicit list of paths to work with, so let's not use it.
@akien-mga akien-mga force-pushed the ci-codespell-fix-skip-list branch from 8e3598d to b3bb92a Compare May 8, 2023 13:36
@akien-mga akien-mga requested a review from a team as a code owner May 8, 2023 13:36
@akien-mga akien-mga merged commit cf8ad12 into godotengine:master May 8, 2023
@akien-mga akien-mga deleted the ci-codespell-fix-skip-list branch May 12, 2023 10:32
@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.

1 participant