How to disable sync now option for pull requests and branches
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Users with admin or write permissions to the repository get the "sync now" option for PRs to sync the changes made in the destination branch into the source branch after the PR was created and in the branches page to merge with another branch as shown in the below screenshots,
Pull request view:

Branch view:

Solution
There is no direct option to disable the "Sync Now" feature, however, there is a feature request raised for this functionality,
BCLOUD-22262 - Hide Sync Now link
As an alternative, users can use branch restrictiona to avoid the use of the sync now option if needed:
Enable branch restriction on the source branch similar to below to allow only a certain user or group to perform a write operation so that only that particular user will have the option to sync the branches. Eg - only user Suyog would be able to sync the branches as per the below branch restriction.
Once branch restriction is enabled, the "sync now" option will be greyed out for all the users who are restricted on the branch page.
On the PR page, the "sync now" option will be available, but it will still allow you to click on "sync now" but throws an error "Unable to sync branch SOURCE wasn't synced with DESTINATION".
⚠️PLEASE NOTE - When the branch restriction is enabled, it will also restrict direct write access to the branches in the repository (push), please make sure the groups/users are allowed accordingly.
Was this helpful?