Hello and thank you in advance for the assistance.
I am trying to write a listener for Bitbucket repositories but i am not sure where to start or to go about it.
I am trying to write a listener to on all changes in repositories specifically MergedEvent.
I want to listen for events where a a branch is merged with another matching the condition if the pull request content files with a certain extension.
As a result send an HTTP request with the file name, repository name and other info i can get.
Hi @Hamdy Atakora ,
Have you already seen ScriptRunner for Bitbucket's documentation on Custom Listeners, which can be found here: https://docs.adaptavist.com/sr4bib/6.24.0/features/listeners/custom-listeners
We also have a custom Script Console script in our Library which shows how to make HTTP requests, which you might also find useful: https://library.adaptavist.com/entity/using-external-apis-in-sr
Does this help you get started with the custom listener you are trying to write? Or do you require more help?
Kind regards,
Robert Giddings,
Product Manager, ScriptRunner for Bitbucket
A little too late in replying here but nonetheless . Thank you. We went wit a different approach . Appreciate it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.