diff --git a/.github/actions/bot-changelog-generator/generate_changelog.py b/.github/actions/bot-changelog-generator/generate_changelog.py index 26e85364..e444e81e 100644 --- a/.github/actions/bot-changelog-generator/generate_changelog.py +++ b/.github/actions/bot-changelog-generator/generate_changelog.py @@ -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" diff --git a/.github/actions/bot-changelog-generator/test_generate_changelog.py b/.github/actions/bot-changelog-generator/test_generate_changelog.py index de1b0d3c..961f2cd5 100644 --- a/.github/actions/bot-changelog-generator/test_generate_changelog.py +++ b/.github/actions/bot-changelog-generator/test_generate_changelog.py @@ -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,