Compare commits

...

3 Commits

Author SHA1 Message Date
Jinglei Ren
23b8693075
Update description of /commit.zh 2024-01-02 22:07:20 +08:00
Jinglei Ren
60d35d9f5f
Update /commit chat messages 2024-01-02 22:02:01 +08:00
Jinglei Ren
9fdcbcd9d6
Update /commit command description 2024-01-02 21:41:07 +08:00
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
description: commit changes with commit message in english.
description: Writes a well-formatted commit message for selected code changes and commits them via Git. Include an issue number if desired (e.g., input "/commit to close #12").
hint: to close Issue #issue_number
input: optional
steps:

View File

@ -301,7 +301,7 @@ def get_marked_files(modified_files, staged_files, file_summaries):
if file not in staged_files
]
selected_files = ui_checkbox_select("Select files to commit", options)
selected_files = ui_checkbox_select("Select the files you've changed that you wish to include in this commit, then click 'Submit'.", options)
return selected_files
@ -411,7 +411,7 @@ def display_commit_message_and_commit(commit_message):
None
"""
new_commit_message = ui_text_edit("Edit commit meesage", commit_message)
new_commit_message = ui_text_edit("I've drafted a commit message for the code changes you selected. You can edit this message in the widget below. After confirming the message, click 'Commit', and I will proceed with the commit using this message.", commit_message)
if not new_commit_message:
return
subprocess.check_output(["git", "commit", "-m", new_commit_message])

View File

@ -1,4 +1,4 @@
description: 提交当前代码修改.
description: 为你选定的代码变更生成格式规范的提交信息,并通过 Git 提交。如需要可包含对应 issue 编号(例如,输入“/commit to close #12”
hint: to close Issue #issue_number
input: optional
steps: