You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
For the regex to match type in something like “OOPS”
Add a message to the commiter: “Please remove OOPS from commit message”
Save the hook
What happens if you leave the branch field empty to work on all branches.
Then the hook prevents the push to the branches.
For sake of arguement why would you disallow this for only master?
We have our reviewers listed out in the commit message.
Our default commit message template fills out the default commit message with the words “Reviewed by NOBODY (OOPS!)” as there is no reviewer until after it goes through code review.
We use the commit checker to make sure the worrd “OOPS” is not in any commit message when commiting to master or release branches.
The text was updated successfully, but these errors were encountered:
What exactly do you mean by "Then the hook prevents the push to the branches."?
Are you saying that you want to use the hook only on master-branch?
That's exactly right.
Please note it is possible now to set a hook to only run on masterbut the main point here is that when you use a Pull Request to merge your changes from branch x => master that hook is not respected.
I anticipate bitbucket is not running the commits through the commit checker at PR-merge-time.
We use the commit checker to make sure the worrd “OOPS” is not in any commit message when commiting to master or release branches.
The text was updated successfully, but these errors were encountered: