ScriptRunner for BitbucketPull changes in remote branchOverview You can use this ScriptRunner snippet to fetch changes from any remote branch and pull them into another remote branch.
ScriptRunner for BitbucketPost message on Slack when a branch is createdOverview This script can post a message on a Slack channel, when a branch is created. By default this script will post a notification for any new branch, but you can optionally ignore specific branch prefixes. Good to Know In order to setup this script: Follow this guide to setup your Slack App and a Slack Resource in ScriptRunner: https://docs.adaptavist.com/sr4bib/latest/features/resources/slack-connectionCreate a new Custom Post Hook, check 'Execute Asynchronously' and add the following triggers:branch-createpushPaste this script into the 'script' field and fill in the Dynamic form fields.
ScriptRunner for BitbucketFind branch by nameOverview This script can be used to find branches by name.
ScriptRunner for BitbucketRebase branchOverview This snippet can be used to rebase branches. Good to know If all commits of the branch to be rebased are to be discarded bacause they already exist upstream, and the parameter commitRequired is set to 'true', then the rebase will fail. If the parameter is set to 'false' the branch to be rebased can be reset to the latest commit of the upstream branch.