Hey everyone,
I have been running into this problem, and I am not sure how to properly solve it.
I have created a Python script that uses the BitBucket Atlassian plugin to create repositories under a given project. I have finished this task.
However, under each repository, I want to automate the process of including a default pre-receive (protect git refs) hook in ScriptRunner. I am not sure what is the best way to go about it is.
Does anyone have any clues or pseudocode? I have tried doing POST calls that mimic the network transaction, but I am getting a 500 error.
Thanks