Skip to content

feat(commit): warn at 50 chars, error at 72 for subject line (#1635)#2941

Open
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:feat/commit-summary-length-hints-1635
Open

feat(commit): warn at 50 chars, error at 72 for subject line (#1635)#2941
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:feat/commit-summary-length-hints-1635

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

Implements two-tier commit subject length hints as requested in #1635:

  • > 50 characters: yellow [subject length: N] hint (soft warning)
  • > 72 characters: red hint (hard limit / existing danger style)

Closes #1635.

Test plan

  • Open commit popup, type a subject with 51–72 chars → yellow length hint
  • Type 73+ chars → hint turns red
  • Subject ≤ 50 chars → no hint shown

Made with Cursor

…rg#1635)

Show a yellow subject-length hint after 50 characters and switch to the
existing red style once the summary exceeds 72 characters.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Commit summary length hints (warning at 50, error at 72)

1 participant