Trying to figure out how to programmatically enable/disable the "JIRA ID validator All Commits in a push" hook feature on a BitBucket repository.
What kind of programmatic rules are you thinking of setting up?
Are you an admin for that repo? Or just a regular user? If you're an admin take a look under "Repository --> Settings --> Hooks" as well as "Merge Checks" to see if there's anything in there you can adjust.
There are several popular free and paid add-ons for enforcing git policy like this: ScriptRunner (paid), Jira Hooks (paid), Commit Policy (paid), Yet Another Commit Checker (free), and Control Freak (free).
In theory you *could* develop your own plugin to programmatically enable/disable JIRA checking rules to suit your specific needs, but in my own experience it's a lot of work! (My company develops and maintains the free Control Freak add-on).
Have some rules enforced for users that we don't want the admins to have to abide with. Have some remote automation that needs to be able to bypass those rules. Just wondering if the BitBucket API would allow doing stuff like that via curl.
Are you asking about Bitbucket Cloud or Bitbucket Server?
Server
It looks like you're new here. Sign in or register to get started.