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

Function commitFieldsAsFormat

ng-dev/commit-message/parse.ts:68–72  ·  view source on GitHub ↗
(fields: CommitFields)

Source from the content-addressed store, hash-verified

66export type CommitFields = typeof commitFields;
67/** The commit fields described as git log format entries for parsing. */
68export const commitFieldsAsFormat = (fields: CommitFields) => {
69 return Object.entries(fields)
70 .map(([key, value]) => `%n-${key}-%n${value}`)
71 .join('');
72};
73/**
74 * The git log format template to create git log entries for parsing.
75 *

Callers 1

parse.tsFile · 0.85

Calls 1

entriesMethod · 0.45

Tested by

no test coverage detected