Skip to content

Conversation

@f-lopes
Copy link
Contributor

@f-lopes f-lopes commented Jun 11, 2023

Add git-build-hook-maven-plugin + pre-push hook

@GoncaloPT
Copy link
Contributor

Hello @f-lopes. Would you care to explain the reason for this?

@f-lopes
Copy link
Contributor Author

f-lopes commented Jun 22, 2023

Hello @GoncaloPT

It's a safeguard, preventing users from pushing "non-compliant" changes (build failure, format errors, etc.).

I think it's a great way for an open-source library to "guide" the contributors.

@GoncaloPT
Copy link
Contributor

I see your point. But it would also prevent me to share code with someone else if I want to work together with you for example on the same branch.
I believe a better place to have the safeguard you suggest is on the pull request, having the clean package there, validating your pull request.
What do you think?

@f-lopes
Copy link
Contributor Author

f-lopes commented Jun 22, 2023

You can still disable hook using the --no-verify flag if needed (git push --no-verify).

@f-lopes f-lopes force-pushed the build/git-build-hook-plugin branch from 44cd865 to 687a5a6 Compare June 23, 2023 18:20
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