MCPcopy Create free account
hub / github.com/angular/dev-infra / commitMessageBuilder

Function commitMessageBuilder

ng-dev/commit-message/test-util.ts:22–27  ·  view source on GitHub ↗
(defaults: CommitMessageParts)

Source from the content-addressed store, hash-verified

20 * Generate a commit message builder function, using the provided defaults.
21 */
22export function commitMessageBuilder(defaults: CommitMessageParts) {
23 return (params: Partial<CommitMessageParts> = {}) => {
24 const {prefix, type, scope, summary, body, footer} = {...defaults, ...params};
25 return `${prefix}${type}${scope ? '(' + scope + ')' : ''}: ${summary}\n\n${body}\n\n${footer}`;
26 };
27}

Callers 2

parse.spec.tsFile · 0.85
context.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected