Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Does Bitbucket Cloud support git pre-receive hooks?

I would like to configure a Bitbucket Cloud git repository with a pre-receive hook. Is this possible?

2 answers

1 accepted

0 votes
Answer accepted
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Nov 28, 2018

It is not currently possible.

@jredmond are there plans to add this feature such that I could watch a feature request issue for updates?

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Nov 28, 2018

+1 Need this

1 vote
Levente Szabo _Midori_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Nov 15, 2019

Hi @Johnathan Gilday 

As an alternative, until Atlassian delivers this, you can give Better Commit Policy for Bitbucket a try! It allows you to install local hooks, so you can verify commit right on the developers' computer at commit time. As long as it's consistently used across the developer team, it can work as an alternative to a server-side hook.

(Please note that the app relies on Better Commit Policy for Jira!) 

Better Commit Policy for Bitbucket seems to be supported only in Server / Datacenter and not in Cloud.

Levente Szabo _Midori_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Nov 21, 2019 • edited

Hi @_abhishekgarg 

Yes, that's why I mentioned local hooks, as a workaround (and that it relies on  Better Commit Policy for Jira Server) until Atlassian delivers pre-receive hooks. As long as the local hooks are consistently used across the developer team, it can work as an alternative to a server-side hook.

So it's not yet available to be directly installed on Bitbucket Cloud, and Bitbucket Cloud also doesn't allow you to configure pre-receive hooks. You can read more about how this workaround can work here.

Yet another feature I've used on multiple other platforms since at least 2012 that's not available in Bitbucket. I really can't be bothered to "vote" for issues I take for granted in anything else that considers itself to be "Enterprise". 

* Note: I edited this reply. To make it better. Take a hint, Bitbucket maintainers. 

Like Brad Mace [ATS] likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events