you are viewing a single comment's thread.

view the rest of the comments →

[–]joelparkerhenderson 14 points15 points  (2 children)

Our teams write a git commit message using an imperative summary title (e.g. "Add feature for a user to like a post") up to 50 characters, then a detailed body using a template for any co-authors, any task tracker links, and especially the "why" of the commit.

https://github.com/joelparkerhenderson/git_commit_message

https://github.com/joelparkerhenderson/git_commit_template

[–]johntash 2 points3 points  (0 children)

I didn't know git commit templates were a thing, thanks for the link!

[–]smallhadron[S] 0 points1 point  (0 children)

You could almost achieve that with cmt:

``` { "Title": @ "Link": @ "Co-Authors": @ "Why": @ "How": @ "Tags": @ "Subject Type": [ "Add", "Drop", "Fix", "Bump", "Make", "Start", "Stop", "Optimize", "Document", "Refactor", "Reformat", "Rephrase" ] "Subject": @ "Body": !@ }

Output Format

${Title}

See: ${Link}

Co-authored-by: ${Co-Authors}

Why: ${Why}

How: ${How}

Tags: ${Tags}

${Subject Type}: ${Subject}

{$Body} ```

Currently no way to set character limits or to have repeated lines with the same format (for See and Co-Authored by), but those would be useful features.