You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following Git diff and the list of changed files (with file types), suggest a single concise and relevant commit message that best summarizes all the changes made. Use a conventional commit style (e.g., feat:, fix:, chore:, docs:, refactor:). The message should be no longer than 72 characters.
8
+
Just return the commit messages without any additional text or explanation, without any Markdown formatting.
9
+
Input:
10
+
Git Diff:
11
+
[Git Diff]
12
+
13
+
Changed Files and Types:
14
+
[Changed Files and Types]
15
+
16
+
Instructions:
17
+
1. Analyze the diff and the list of changed files/types.
18
+
2. Summarize all changes into a single logical commit.
19
+
3. Write a concise commit message (max 72 characters) in the conventional commit style
20
+
"""
21
+
22
+
defget_changed_files():
23
+
# Git add all
24
+
subprocess.run(
25
+
["git", "add", "."],
26
+
capture_output=True, text=True
27
+
)
28
+
# Get all staged and unstaged files (excluding untracked)
0 commit comments