How do I disable the remote create pull request message when pushing changes
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Usage
In Bitbucket Server 3.3, a feature was added to display a message to users in the terminal with a link to create a pull request when a new branch or branch with no pull requests is pushed. This guide will explain how to turn this feature off.
1
2
3
4
remote:
remote: Create pull request for ABC-123-fix-bug:
remote: http://localhost:7990/projects/PROJ/repos/REPO/compare/commits?sourceBranch=refs/heads/ABC-123-fix-bug
remote:
Steps
Currently this feature can only be turned on or off globally. There are two feature requests to improve the behavior:
BSERV-5470 - Selectively show the create PR link in the git console output based on the branch model
BSERV-5471 - Provide an option to disable the PR link in git console output on a per repo basis
To turn this feature off, do the following:
Navigate to Administration > Add-ons > Manage apps
Select System from the dropdown
Search for 'Bundled Hooks' (complete name is Bitbucket Server - Bundled Hooks), expand it and its modules
Find the 'print-branch-links-hook' module, select Disable
Was this helpful?