Help keeping or enforcing commit line length

When doing PR merges and similar using the Github web interface it’s very hard to keep line length to 50/72. There’s no indication when you’ve passed the limit and there seems to be no way to enforce it on a repo basis either.

Is there any functionality that I might have missed?

I would like if each repo had a setting for the line length(s), and and option to either enforce or warn if a commit does not comply with it.

At minimum I would like some indication in the text fields: maybe turn the text red if it’s longer than 72 characters. Even just having a monospaced font for these fields would help.

This limit is not a git specification, and does not appear in the GitHub user interface. It is an understood best practice for writing commits clearly.

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.