From abf15ebf1f529fd46c113fab63cf0612500f87a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vill=C5=91=20Sz=C5=B1cs?= Date: Fri, 1 Dec 2023 15:10:08 +0100 Subject: [PATCH] Addendum: Refactor commit message handling in merge_pr function Change-Id: I7c738b31b8f5991bc5f93118285c561c2a4719af --- zk-merge-pr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zk-merge-pr.py b/zk-merge-pr.py index debc36e318e..bd1e9e8c614 100755 --- a/zk-merge-pr.py +++ b/zk-merge-pr.py @@ -132,7 +132,8 @@ def merge_pr(pr_num, title, pr_repo_desc): if json_commits and isinstance(json_commits, list): for commit in json_commits: commit_message = commit['commit']['message'] - merge_message += [commit_message] + if commit_message != title: + merge_message += [commit_message] # Check for disapproval reviews. json_reviewers = get_json(f"https://api.github.com/repos/{PUSH_REMOTE_NAME}/{PROJECT_NAME}/pulls/{pr_num}/reviews")