We have several thousand bitbucket repositories, and some of these need to have a specific set of scriptrunner merge checks and pre-hooks applied to them. Assuming I already know (or can detect via script) which repositories need these rules applied, is there a way to script the enabling of a hook to specific repositories? I want to avoid having to click a checkbox next to each repo that needs the rule(s) applied.
Thanks!