My employer uses an on-prem bitbucket server, and it echoes back a pull request URL after I do a git push
. Is there a way to have a global hook which lets me open this URL directly in my browser every time I git push
from anywhere, be it a terminal or an IDE?
Asked
Active
Viewed 609 times
3

shashanka n
- 2,568
- 1
- 14
- 21
1 Answers
1
Not really: there is no post-push client-side hook.
So, as mentioned in here, you could need to make a Git wrapper script in order to:
- detect the push
- parse its stderr output
- extract the URL
- call a brwoser with it.

VonC
- 1,262,500
- 529
- 4,410
- 5,250