Merge pull request 'agit: Set COMMIT_EDITMSG as filetype' (#3991) from kenji/agit: Set COMMIT_EDITMSG as filetype into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3991
This commit is contained in:
kenji
2025-06-17 12:02:03 +00:00

View File

@@ -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")