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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.