Unfill-paragraph when converting commit messages to PR descriptions #21065
-
Conventionally, commit messages should be fill-paragraph'd to 72 characters (except the first line which should be limited to 50). However when Github picks that up to generate a garbage-looking PR message since GFM interprets line breaks as line breaks but double breaks as paragraphs. This is made worse by the visual expansion and contraction of references e.g. a #-reference to an issue or PR gets expanded with the entire title of the corresponding object, but a 40 characters hash reference gets shortened to 7~8. Links and footnotes in markdown-style also get altered by the transition. If github "unfilled" the paragraphs of text (removed the linebreaks but kept the paragraph breaks) it'd make PRs much better looking out of the box for people who write & format extensive commit messages. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 19 replies
-
@xmo-odoo would you be interested in beta testing this feature? Edit: this is shipped! |
Beta Was this translation helpful? Give feedback.
@xmo-odoo would you be interested in beta testing this feature?
Edit: this is shipped!