MCPcopy Index your code
hub / github.com/coder/coder / commitSortPrefix

Function commitSortPrefix

scripts/releaser/commit.go:108–114  ·  view source on GitHub ↗

commitSortPrefix extracts the first word of a title for sorting.

(title string)

Source from the content-addressed store, hash-verified

106
107// commitSortPrefix extracts the first word of a title for sorting.
108func 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

Callers 1

commitLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected