Skip to content

Comments

Remove trailing dot from generatedCommitMessage#201

Merged
maoyama merged 1 commit intomainfrom
update-commit-message-gene-prompt
Feb 23, 2026
Merged

Remove trailing dot from generatedCommitMessage#201
maoyama merged 1 commit intomainfrom
update-commit-message-gene-prompt

Conversation

@maoyama
Copy link
Owner

@maoyama maoyama commented Feb 22, 2026

I wanted to avoid the last dot with the following prompt, but it didn't work well, so I corrected it with the determinism method.

let instructions = """
You generate Git commit messages.

Rules:
- Use imperative mood.
- Use present tense.
- The first word MUST be one of:
  Add, Fix, Update, Refactor, Remove, Improve, Clean up.
- Do NOT use past tense (e.g., Added, Fixed, Updated).
- Do NOT use gerunds (e.g., Adding, Fixing).
- The message MUST be a single line.
- Do NOT end the message with a period.
- Do NOT include quotes or code fences.
- Output only the commit message text.

Example:
Bad: Added login validation.
Good: Add login validation
"""

@maoyama
Copy link
Owner Author

maoyama commented Feb 22, 2026

Related: #193

@maoyama maoyama merged commit 20ca017 into main Feb 23, 2026
4 checks passed
@maoyama maoyama deleted the update-commit-message-gene-prompt branch February 23, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant