commitSortPrefix extracts the first word of a title for sorting.
(title string)
| 106 | |
| 107 | // commitSortPrefix extracts the first word of a title for sorting. |
| 108 | func commitSortPrefix(title string) string { |
| 109 | idx := strings.IndexAny(title, " (:") |
| 110 | if idx < 0 { |
| 111 | return title |
| 112 | } |
| 113 | return title[:idx] |
| 114 | } |
| 115 | |
| 116 | // humanizedAreas maps conventional commit scopes to human-readable area |
| 117 | // names. Order matters: more specific prefixes must come first so that |