Increase maximum length of pull request title

When I push a commit with a commit message like:

This line is supposed to be the commit title and it may be a bit longer than this.
More details about the change here.

and then create a PR on GitHub it automatically pre-fills the title with the first line and the description with the rest. This is good, but the title often gets truncated:

Title: This line is supposed to be the commit title and it may be a bit lon…
Description:
…ger than this.
More details about the change here.

This happens even though the Title textbox allows longer text than this. I can manually change it to:

Title: This line is supposed to be the commit title and it may be a bit longer than this.
Description:
More details about the change here.

which is what I want. It’s quite annoying to have to fix this manually all the time. Is there a way to control the maximum length at which the PR title is “wrapped”? Why it does not just go up to the maximum length that I’m allowed to enter manually?

2 Likes

I tried to reproduce this, but I got a different result. Rather than seeing my commit message, I see the name of my branch as the default PR title.

Could you list your exact steps that lead you to the behavior you are seeing?
Add screenshots where applicable.

1 Like

If the PR only includes one commit then the first line of the commit title is used as the PR title, otherwise the branch name.

3 Likes

Thanks for the clarification! It looks like we have an internal feedback issue related to this. I am adding your comments to the issue.

However, for anyone else that may want this feature updated, please used our feedback form.

We’re always working to improve GitHub and the GitHub Support Community, and we consider every suggestion we receive.
You can do so by submitting this through our official product feedback form so that our product team can track your request.

You can also keep an eye on our Changelog as well as the GitHub public roadmap to see features we are working on.