-
Notifications
You must be signed in to change notification settings - Fork 88
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
Scripts as precommit hook #1473
Conversation
This means #1466 isn't sufficient and should be closed? I'd be really happy if we could make that work without manual scripts |
nit: you should change the API token back to the @ginkgo-bot token we have stored as a secret |
I think you could also use this to remove |
Error: The following files need to be formatted:
You can find a formatting patch under Artifacts here or run |
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! Can you confirm the only changes you did to format_header.sh are the outer for-loop and replacing $1
by ${current_file}
?
I tested it locally with multiple inputs and it worked as expected. But there is no way to show this, except putting this in my fork. |
@MarcelKoch I just meant that the diff makes it a bit unclear whether other things changed except for the indentation. But I see that that's not the case |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.3) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
This PR make the pre-commit hook call the scripts
format_header.sh
andginkgo_update_header.sh
. It was necessary to modifyformat_header.sh
to accept multiple files.Additionally, the
.pre-commit-config.yaml
is now correctly staged beforepre-commit
is run.