(message, options)
| 4 | import defaultChangelogOpts from "conventional-changelog-angular"; |
| 5 | |
| 6 | const defaultParser: Parser = (message, options) => { |
| 7 | if (message === undefined || message === null) { |
| 8 | throw new TypeError("Expected a raw commit"); |
| 9 | } |
| 10 | const parser = new CommitParser(options); |
| 11 | const result = parser.parse(message); |
| 12 | result.scope = result.scope ?? null; |
| 13 | result.subject = result.subject ?? null; |
| 14 | result.type = result.type ?? null; |
| 15 | return result; |
| 16 | }; |
| 17 | |
| 18 | export async function parse( |
| 19 | message: string, |
nothing calls this directly
no outgoing calls
no test coverage detected