question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggest length limit for PR titles

See original GitHub issue

Description

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

https://github.com/refined-github/refined-github/pull/5365

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
fregantecommented, May 20, 2022

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.

1reaction
fregantecommented, May 19, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found