Select Git revision
delete_merged_branches.py 367 B
from functions import *
def repo_action(project_meta):
path = "/projects/" + str(project_meta['id']) + "/repository/merged_branches"
r = requests.delete(url=get_url(path))
if r.ok:
print("Updated: " + project_meta['name'])
else:
print("ERROR: " + project_meta['name'])
if __name__ == "__main__":
iterate_on_groups(repo_action)