I'm looking for a way to use API to get the current status of automatic merging at each repo level.
What is the API endpoint to get the status and/or enable/disable using API?
I tried with below but doesn't display the auto-merge info:
api_url =
'https://bitbucket.com/rest/branch-utils/1.0/projects/test/repos/testrepo/branchmodel'
Data:
{'development': {'id': 'refs/heads/master', 'displayId': 'master', 'type': 'BRANCH', 'latestCommit': 'd5d639365f7ed', 'latestChangeset': 'd5d639365f7ed0a6xxx', 'isDefault': True}, 'types': [{'id': 'BUGFIX', 'displayName': 'Bugfix', 'prefix': 'bugfix/'}, {'id': 'FEATURE', 'displayName': 'Feature', 'prefix': 'feature/'}, {'id': 'HOTFIX', 'displayName': 'Hotfix', 'prefix': 'hotfix/'}, {'id': 'RELEASE', 'displayName': 'Release', 'prefix': 'release/'}]}