Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: add optional arguments to signatures #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rasmus-Bertell
Copy link

@Rasmus-Bertell Rasmus-Bertell commented Sep 15, 2024

If the commands are run with extra arguments without them being defined the command fails. This fix allows calling the pre-push and prepare-commit-msg hooks with all their arguments while still retaining the old behavior since the arguments are optional.

Reference: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

closes #31 #36

If the commands are run with extra arguments without them being defined
the command fails. This fix allows calling the `pre-push` and
`prepare-commit-msg` hooks with all their arguments while still
retaining the old behavior since the arguments are optional.

Reference: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

closes igorsgm#31
Copy link

what-the-diff bot commented Sep 15, 2024

PR Summary

  • Enhanced PrePush Command
    The PrePush command has been updated to accept additional optional parameters. This allows more flexibility when pushing changes to a repository as you can now specify a remote and url.

  • Improved PrepareCommitMessage Command
    The PrepareCommitMessage command now takes additional optional parameters. This provides a more granular control over commit messages by letting you specify a type and sha.

@brunogoossens
Copy link

+1

@FloLandgraf
Copy link

+1

@DevHolako
Copy link

heyy is this pr not gonna merged ?

@Rasmus-Bertell
Copy link
Author

@igorsgm, are you still maintaining this package? If not, I might be open to taking over as the maintainer.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pre-push hook error - no arguments expected
4 participants