From 3a17a13edb8a3905360446136e1f33243947cb94 Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Sat, 23 Dec 2023 13:06:12 +0000 Subject: [PATCH 1/2] dev: merged prs do not close issues. Fixes #424. --- personal_mnemonic_medium/subtasks/graphite.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/personal_mnemonic_medium/subtasks/graphite.py b/personal_mnemonic_medium/subtasks/graphite.py index 51e07215..f8f56616 100644 --- a/personal_mnemonic_medium/subtasks/graphite.py +++ b/personal_mnemonic_medium/subtasks/graphite.py @@ -14,5 +14,6 @@ def create_branch_from_issue(c: inv.Context, selected_issue: GithubIssue): sanitised_title = sanitise_issue_title(selected_issue.title) branch_title = f"{selected_issue.number}-{sanitised_title}" c.run(f"gt create {branch_title}") - c.run(f"git commit --allow-empty -m '{selected_issue.title}'") - c.run(f"git commit --allow-empty -m 'Fixes #{selected_issue.number}'") + c.run( + f"git commit --allow-empty -m '{selected_issue.title}, fixes #{selected_issue.number}'" + ) From c115b59af918423c8ce2e4771c89cc2a5a395096 Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Sat, 23 Dec 2023 13:06:24 +0000 Subject: [PATCH 2/2] misc. --- personal_mnemonic_medium/subtasks/graphite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/personal_mnemonic_medium/subtasks/graphite.py b/personal_mnemonic_medium/subtasks/graphite.py index f8f56616..8cd9c610 100644 --- a/personal_mnemonic_medium/subtasks/graphite.py +++ b/personal_mnemonic_medium/subtasks/graphite.py @@ -15,5 +15,5 @@ def create_branch_from_issue(c: inv.Context, selected_issue: GithubIssue): branch_title = f"{selected_issue.number}-{sanitised_title}" c.run(f"gt create {branch_title}") c.run( - f"git commit --allow-empty -m '{selected_issue.title}, fixes #{selected_issue.number}'" + f"git commit --allow-empty -m '{selected_issue.title}. Fixes #{selected_issue.number}'" )