@@ 41,7 41,6 @@ def process_commits(repo, json_data):
base_commit_url = urljoin(base_repo_url, "commits/")
for commit in json_data["commits"]:
- print("in commit")
proc_cards = []
msg = commit["message"]
context = {
@@ 56,7 55,6 @@ def process_commits(repo, json_data):
}
for action, card_id in re_pattern.findall(msg):
- print(f"in {action} -> {card_id}")
if card_id in proc_cards:
# Referenced more than once in the commit msg
continue
@@ 72,9 70,7 @@ def process_commits(repo, json_data):
if action.lower() == "close":
# FYI, this is hard coded for our own use case.
# DO NOT USE!
- print("updating status")
update["issue"]["status_id"] = 15
- print(f"Final result: {update}")
result = requests.put(
f"{settings.REDMINE_ROOT_URL}/issues/{card_id}.json",