Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×What follows is three example commits. In all cases 'git show' explains correctly, yet for merge commits the two API's give inconsistent results. Consider this merge commit #1, 'git ...
Is it possible to check the code for patterns using scriptrunner?
Hi, We are trying to implement a pre receive hook at repository level. We want to reject push that contains sql files having blacklisted keywords. Currently don't see an option to enable/a...
Have prehook with naming convention set to "feature/[abc]-\d{1,6}-\w.*". Everything works fine when create branch from jira ticket but getting this prehook error when pushing branch created locally. ...
Trying to set a pre-receive hooks to make every commit contain a jira-id. But unfortunately, couldn't see the hooks option inside project settings. https://confluence.atlassian.com/bitbucketse...
Hi Members, I am developing bitbucket plugin for pre receive hooks . I have plugin sdk and after setup when i run `atlas-run` it gives me below error : The Tomcat connector configured to listen on ...
We have developed a pre-repository hook plugin for Bitbucket v6.10.0. The issue we are facing is when the plugin is enabled for a empty repository, and we are trying to push some files, we are getti...
Hi, We're on Atlassian Bitbucket v5.16.10 and have multiple repositories that we'd like to enforce the same Git policy, such as require valid JIRA issue in each commit, following a st...
Hi , I am trying to write a pre-recieve (preUpate) hook to get the Diff content for a commit and scan for the specific strings from the Diff using commitService. commitService.streamDif...
...DK api's. @Override public boolean onReceive(RepositoryHookContext context, Collection<RefChange> refChanges, HookResponse hookResponse) { Repository repository = context.getRepository(); f...
Hello, We have an idea of creating a pre-receive hook handler using ScritpRunner, which would only allow a push (containing some specific entries in any commit), if there is a special entry in one o...
How to exclude an user from Pre-receive Hooks as condition when Jira issue is enabled for every commits . After enabling Jira issue as a mandatory for each commit..
Hi, We have created a prehook to match email id of current committer with its email id for previous commits. Although we can match the full string of both the email id's like bel...
Hello we are using Bitbucket for a couple of projects, and we have added a pre-receive hook that checks the commits message for the presence of a valid JIRA issue : the script parses each commit mes...
Hello Team, I looked at various articles on pre-push/pre-recieve server side hooks and still not able to figure out how to proceed. Here is my use case: I have many configuration file...
I would like to write a plugin to do this but I can not see how to interact with the contents of a commit to scan for the words. Is this possible? I also am running scriptrunner on the bitb...
I am looking for API for add/delete/edit Bitbucket Pre-receive Hooks. e.g. Protect git refs
Hi, I'm creating a groovy script which I've set as a pre-receive hook so as to run pylint on any .pp files and fail when the score is too low. I set the hook at a URL like this one: https:...
Hello Adaptavist, Atlassian, I have setup Script Event Handlers and Script Pre Hooks 'Naming standard enforcement' for bugfix and hotfix as per below in Bamboo Server Scriptrunner add-on bugfi...
We have created a pre receive hook plugin for bitbucket server (roughly following the video tutorial https://developer.atlassian.com/blog/2015/01/beer-o-clock-stash-plugin-tutorial/) and the onReceiv...
I'm adding a pre-receive hook on my repository in Bitbucket. I added the "Require commits to be associated with a JIRA issue" hook. It is provided by ScriptRunner. But when I push the master branch...
I have set up a baseline branch to restrict all users from pushing to it, as I only want code merged after a pull request has been approved. This works fine if the Stash GUI is used to do the merge....
Hi! We have upgraded Bitbucket to 5.3. from 4.14 version. And now our preceive hook can match merge commits. private final Pattern mergeBranchPattern = Pattern.compile...
There is an end case that I am trying to detect in our BitBucket Pre-Receive script. The case is quite simple. A developer creates a bugfix branch off of master and begins doing work. They perform so...
I've got a pre-receive BitBucket hook written using the Java API which does some analysis on diffs or file contents. It works perfectly thus far. I would like to be able to get the name or username o...
Copied to clipboard