From e6ed0204231d00e72e3e4eacf9f1ace6a8814770 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Tue, 17 Jun 2025 12:42:12 +0200 Subject: [PATCH] agit: Set `COMMIT_EDITMSG` as filetype --- pkgs/agit/agit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/agit/agit.py b/pkgs/agit/agit.py index 3201efaca..f6c916b64 100644 --- a/pkgs/agit/agit.py +++ b/pkgs/agit/agit.py @@ -49,7 +49,7 @@ def get_latest_commit_info() -> tuple[str, str]: def open_editor_for_pr() -> tuple[str, str]: """Open editor to get PR title and description. First line is title, rest is description.""" with tempfile.NamedTemporaryFile( - mode="w+", suffix=".txt", delete=False + mode="w+", suffix="COMMIT_EDITMSG", delete=False ) as temp_file: temp_file.write("\n") temp_file.write("# Please enter the PR title on the first line.\n")