Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ def build_prompt(
f"- Keep the first line within {COMMIT_SUBJECT_LIMIT} characters, "
"including the tag and spaces\n"
"- Capitalize the first word after the tag\n"
"- Use past tense for the commit message (e.g., 'Added', 'Fixed', 'Changed')\n"
"- The message must contain a body after one blank line\n"
"- If an issue number appears in the title, the same issue number must "
"appear in the body footer\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ def test_builds_basic_prompt(self):
f"within {COMMIT_SUBJECT_LIMIT} characters, including the tag and spaces",
system_instruction,
)
self.assertIn("Use past tense for the commit message", system_instruction)
self.assertIn(
"If any rule below is broken, the output is invalid.",
system_instruction,
Expand Down
Loading