Hi,
I'm looking for way to create a git server side push hook (will be used to enforce referencing JIRA ticket number in each commit message).
According to pro git - git hooks, the git hook to use on the server side is 'update', which exists on .git/hooks dir.
How do I perform it in my bitbucket git repo?
Thanks,
Benny
Ok, I've created a solution for Bitbucket Server.
It requires filesystem access with admin/root rights to the Bitbucket Server host, but it works fine.
Please see https://github.com/AlexanderAmelkin/bitbucket-git-hooks-for-jira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Although Bitbucket doesn't allow you to configure the server-side hooks, there is a really neat method to verify commit messages using local hooks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.