I would like to ensure that certain files are not automerged from one branch to another when a pull request is merged. For example, I want to ensure that any files in the config directory...
Hello. I want to XCOPY repository files to a network share after each commit to Bitbucket. I know that can be implemeted as post-commit-hook in git but I need this action to be configured on&...
I would like to add the pull request code review link at the bottom of every commit message. Can this be done? Scriptrunner runs at the time of merging so it seems like I use that.
I am having a lot of issues or not understand enough about how to implement the pre-hook in BitBucket using ScriptRunner. I have many but following are the first 3 cases: we are using this kin...
We're running Bitbucket and Scriptrunner (hosted). When my developers commit multiple files, some of which match a list of defined file types (lets say Java or JS file) I want to test these...
Hello, I am trying to set up a merge check script that will reuse an existing pre-commit git hook in my repository(from the ".git/hooks" folder) and if the hook returns the ok status I will ...
Summary Question: Can I generate a pull request using scriptrunner for bitbucket server? Background: I am working on a certain workflow that requires PRs to multiple branches when a change need...
Hi everybody. Is there any opportunity to catch clone repo event with ScriptRunner and then run user defined script?
Hey, I wonder if someone has looked into the following use-case: We want to digitally "sign" all commits created on e.g. the master branch based on a number of criteria. These could be approved by ...
Is it possible to disable specific global pre-hook check on repository or project level? E.g. we have same settings for 99 projects and all newly-created ones, but there's 1 specific repository that ...
We have business requirement where we want to validate all sources code files contain copyright code comment at first/top line. i.e. if commit source files doesn't contain "****COMPANY NAME*****" tex...
I am upgrading my Bitbucket from 4.13.0 to 5.6.1 and then upgrading the ScriptRunner for Bitbucket plugin to the latest version via the admin panel in Bitbucket. We have several repositories that ar...
I'm using a code to disallow creating tags. It works when pushing tags from remote. But it is still possible crating tags via web UI. How I can disable it? Thanks.
Hi, As admin BitBucket I could create a custom script on the Administration>Script Post Hook. In the "Add New Item" "Custom script hook" is available. How can I add this script to be available f...
Hello, I am trying to set up Script Pre Hook on my repository to stop any commit when it contains DELETE change on the .gitignore file. Because I am not a developer so I am not a...
For one user, this hook is complaining that the assignee on the JIRA issue doesn't match the user who is pushing the commit associated with a JIRA id. Lot of other users are able to push the commits ...
Is there a way to leverage the ScriptRunner for Bitbucket plugin event listener in the following way: When you create a new branch in bitbucket you have to select the source branch/tag. Is ther...
Is it possible to see the source for any of the built-in scripts? The built in scripts for mirroring an external repository into an on-prem repo are only for Bitbucket Cloud and GitHub. I...
Using documantation example faced with error - Unable to resolve class HookResponse reference - https://scriptrunner.adaptavist.com/latest/bitbucket/PreReceiveHooks.html?utm_source=product-help#_con...
I'm using the Auto add reviewers to pull requests Event. And it works great for adding Mandatory reviewers. However, if I retarget the pull request (click on the Change button to change ei...
Hi, i wrote a script in Groovy to enable a banner in the header area for my company. If I look at the website with "...?web.items&web.panels&web.sections" I see that the section,...
Hi Atlassian team, I was very excited about the IntelliJ integration plugin for Scriptrunner. I can see it is available for Jira, but I see no mention of it for Bitbucket. I can't reach the ...
In the GUI of a repository you can activate several build in ScriptRunner scripts. The text is also mentioning: "To write your own choose Custom Script Hook." But this option is in fact not av...
Hi, I started creating custom ScriptRunner script for Bitbucket to block certain git-ref changes. This is basically working fine. Our users can create new BB repositories via a Jenkins job...
Requirement is to read the source code folder path and its corresponding mandatory reviewer from an input file which is already version controlled in GIT repo master branch. Then enable merge button ...
Copied to clipboard
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.