Suggest length limit for PR titles
See original GitHub issueDescription
The suggest-commit-title-limit
suggests the length of a commit title when a PR is about to be merged.
It would be nice to have a length warning also during creation and editing of the PR (the title field at the top of the page), to warn as early as possible and make it easier to merge things later (could also be a default-off option)
Screenshot
No response
Example URL
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Google Says There's No Limit on Title Tag Length
Many SEOs and SEO websites recommend a title tag length of approximately 50 to 70 characters because that's what Google shows in the...
Read more >The Ideal Length for All Online Content - Buffer
The ideal length of a title tag is 55 characters If your title exceeds 60 characters, it will get truncated with an ellipse....
Read more >What Are Title Tags? [Plus FREE Title Tag Preview Tool] - Moz
While we generally recommend keeping your titles under 60 characters long, the exact display limit is a bit more complicated and is based...
Read more >How Long Should a Job Title Be? - Ongig Blog
Google typically displays the first 50–60 characters of a title tag. If you keep your titles under 60 characters, our research suggests that...
Read more >The Ideal Length of Content Types | Articles | Outbrain Help
Knowing the right title length might sound confusing, but according to KISSmetrics, the first three words and the last three words of a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Right. I’ll try to rephrase it:
The PR title does not have a limit; the length only ever comes into play in a very specific set of circumstances that happen much later. Linking these two separate events is kind of a mental stretch for a GitHub user who might not even be the one who will merge the PR.
Reopened on the basis that super-long PR titles aren’t exactly ideal either, however we can’t show a red color in this case, maybe an orange or yellow is better if available.
A character count wouldn’t be particularly helpful because it cannot/does not include the PR number
" (#123)
so: at what magic number do you have to stop on the PR#123
? It’s not 72, not 70, not 68, etc… so we need to use a similar logic to the commit title, except we silently subtract" (#123)".length
from the total.It’s ok to extend this feature to apply it to PRs and maybe rename the feature