Skip to content

Commit

Permalink
Update packages/mermaid/src/diagrams/git/gitGraphAst.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sidharth Vinod <[email protected]>
  • Loading branch information
Austin-Fulbright and sidharthv96 authored Jul 27, 2024
1 parent 6e5e5f9 commit 346efdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mermaid/src/diagrams/git/gitGraphAst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ export const getOptions = function () {
export const commit = function (msg: string, id: string, type: number, tags: string[] | undefined) {
log.info('commit', msg, id, type, tags);
log.debug('Entering commit:', msg, id, type, tags);
id = common.sanitizeText(id, getConfig());
msg = common.sanitizeText(msg, getConfig());
const config = getConfig();
id = common.sanitizeText(id, config);
msg = common.sanitizeText(msg, config);
tags = tags?.map((tag) => common.sanitizeText(tag, config));
const newCommit: Commit = {
id: id ? id : state.records.seq + '-' + getId(),

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / build-mermaid

Cannot find name 'getId'. Did you mean 'getID'?

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / unit-test

packages/mermaid/src/diagrams/git/gitGraphParser.spec.js > when parsing a gitGraph > should handle a gitGraph definition

ReferenceError: getId is not defined ❯ Object.commit packages/mermaid/src/diagrams/git/gitGraphAst.ts:91:33 ❯ Object.anonymous packages/mermaid/src/diagrams/git/parser/gitGraph.jison:198:4 ❯ Parser.parse packages/mermaid/src/diagrams/git/parser/gitGraph.jison:543:36 ❯ packages/mermaid/src/diagrams/git/gitGraphParser.spec.js:12:12

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / unit-test

packages/mermaid/src/diagrams/git/gitGraphParser.spec.js > when parsing a gitGraph > should handle a gitGraph definition with empty options

ReferenceError: getId is not defined ❯ Object.commit packages/mermaid/src/diagrams/git/gitGraphAst.ts:91:33 ❯ Object.anonymous packages/mermaid/src/diagrams/git/parser/gitGraph.jison:198:4 ❯ Parser.parse packages/mermaid/src/diagrams/git/parser/gitGraph.jison:543:36 ❯ packages/mermaid/src/diagrams/git/gitGraphParser.spec.js:24:12

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / unit-test

packages/mermaid/src/diagrams/git/gitGraphParser.spec.js > when parsing a gitGraph > should handle a gitGraph definition with valid options

ReferenceError: getId is not defined ❯ Object.commit packages/mermaid/src/diagrams/git/gitGraphAst.ts:91:33 ❯ Object.anonymous packages/mermaid/src/diagrams/git/parser/gitGraph.jison:198:4 ❯ Parser.parse packages/mermaid/src/diagrams/git/parser/gitGraph.jison:543:36 ❯ packages/mermaid/src/diagrams/git/gitGraphParser.spec.js:37:12

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / unit-test

packages/mermaid/src/diagrams/git/gitGraphParser.spec.js > when parsing a gitGraph > should not fail on a gitGraph with malformed json

ReferenceError: getId is not defined ❯ Object.commit packages/mermaid/src/diagrams/git/gitGraphAst.ts:91:33 ❯ Object.anonymous packages/mermaid/src/diagrams/git/parser/gitGraph.jison:198:4 ❯ Parser.parse packages/mermaid/src/diagrams/git/parser/gitGraph.jison:543:36 ❯ packages/mermaid/src/diagrams/git/gitGraphParser.spec.js:49:12

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / unit-test

packages/mermaid/src/diagrams/git/gitGraphParser.spec.js > when parsing a gitGraph > should handle set direction top to bottom

ReferenceError: getId is not defined ❯ Object.commit packages/mermaid/src/diagrams/git/gitGraphAst.ts:91:33 ❯ Object.anonymous packages/mermaid/src/diagrams/git/parser/gitGraph.jison:198:4 ❯ Parser.parse packages/mermaid/src/diagrams/git/parser/gitGraph.jison:543:36 ❯ packages/mermaid/src/diagrams/git/gitGraphParser.spec.js:60:12

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / unit-test

packages/mermaid/src/diagrams/git/gitGraphParser.spec.js > when parsing a gitGraph > should handle set direction bottom to top

ReferenceError: getId is not defined ❯ Object.commit packages/mermaid/src/diagrams/git/gitGraphAst.ts:91:33 ❯ Object.anonymous packages/mermaid/src/diagrams/git/parser/gitGraph.jison:198:4 ❯ Parser.parse packages/mermaid/src/diagrams/git/parser/gitGraph.jison:543:36 ❯ packages/mermaid/src/diagrams/git/gitGraphParser.spec.js:72:12

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / unit-test

packages/mermaid/src/diagrams/git/gitGraphParser.spec.js > when parsing a gitGraph > should add commits to checked out branch

ReferenceError: getId is not defined ❯ Object.commit packages/mermaid/src/diagrams/git/gitGraphAst.ts:91:33 ❯ Object.anonymous packages/mermaid/src/diagrams/git/parser/gitGraph.jison:198:4 ❯ Parser.parse packages/mermaid/src/diagrams/git/parser/gitGraph.jison:543:36 ❯ packages/mermaid/src/diagrams/git/gitGraphParser.spec.js:104:12

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / unit-test

packages/mermaid/src/diagrams/git/gitGraphParser.spec.js > when parsing a gitGraph > should handle commit with args

ReferenceError: getId is not defined ❯ Object.commit packages/mermaid/src/diagrams/git/gitGraphAst.ts:91:33 ❯ Object.anonymous packages/mermaid/src/diagrams/git/parser/gitGraph.jison:198:4 ❯ Parser.parse packages/mermaid/src/diagrams/git/parser/gitGraph.jison:543:36 ❯ packages/mermaid/src/diagrams/git/gitGraphParser.spec.js:116:12

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / unit-test

packages/mermaid/src/diagrams/git/gitGraphParser.spec.js > when parsing a gitGraph > should handle cases when merge is a noop

ReferenceError: getId is not defined ❯ Object.commit packages/mermaid/src/diagrams/git/gitGraphAst.ts:91:33 ❯ Object.anonymous packages/mermaid/src/diagrams/git/parser/gitGraph.jison:198:4 ❯ Parser.parse packages/mermaid/src/diagrams/git/parser/gitGraph.jison:543:36 ❯ packages/mermaid/src/diagrams/git/gitGraphParser.spec.js:194:12

Check failure on line 91 in packages/mermaid/src/diagrams/git/gitGraphAst.ts

View workflow job for this annotation

GitHub Actions / unit-test

packages/mermaid/src/diagrams/git/gitGraphParser.spec.js > when parsing a gitGraph > should handle merge with 2 parents

ReferenceError: getId is not defined ❯ Object.commit packages/mermaid/src/diagrams/git/gitGraphAst.ts:91:33 ❯ Object.anonymous packages/mermaid/src/diagrams/git/parser/gitGraph.jison:198:4 ❯ Parser.parse packages/mermaid/src/diagrams/git/parser/gitGraph.jison:543:36 ❯ packages/mermaid/src/diagrams/git/gitGraphParser.spec.js:217:12
Expand Down

0 comments on commit 346efdd

Please sign in to comment.