Fix inferred mermaid labels for parser compatibility
This commit is contained in:
parent
de80ec3ee4
commit
55cac60103
2 changed files with 8 additions and 8 deletions
|
|
@ -58,13 +58,13 @@ If anything goes sideways, we can always point to the PR thread and note that it
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart TD
|
flowchart TD
|
||||||
A[Code change] --> B[Pull request opened]
|
A[Code change] --> B[Pull request opened]
|
||||||
B --> C[Automated scan (PR checks)]
|
B --> C[Automated scan: PR checks]
|
||||||
C --> D{Findings?}
|
C --> D{Findings?}
|
||||||
D -->|None| E[Merge]
|
D -->|None| E[Merge]
|
||||||
D -->|Some| F[Ticket created]
|
D -->|Some| F[Ticket created]
|
||||||
F --> G[Exception request]
|
F --> G[Exception request]
|
||||||
G --> H[Alignment session]
|
G --> H[Alignment session]
|
||||||
H --> I[Risk accepted (documented)]
|
H --> I[Risk accepted: documented]
|
||||||
I --> E
|
I --> E
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -80,7 +80,7 @@ We recommend a pilot cohort, a slide deck, and an FAQ, so the shift remains cult
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart TD
|
flowchart TD
|
||||||
A[Developer writes code] --> B[IDE scan (local)]
|
A[Developer writes code] --> B[IDE scan: local]
|
||||||
B --> C{Issue found?}
|
B --> C{Issue found?}
|
||||||
C -->|Yes| D[Fix now]
|
C -->|Yes| D[Fix now]
|
||||||
C -->|No| E[Commit]
|
C -->|No| E[Commit]
|
||||||
|
|
@ -105,7 +105,7 @@ flowchart TD
|
||||||
A[Developer requests access] --> B[Upload screenshot]
|
A[Developer requests access] --> B[Upload screenshot]
|
||||||
B --> C[Attestation captured]
|
B --> C[Attestation captured]
|
||||||
C --> D[Access enabled]
|
C --> D[Access enabled]
|
||||||
D --> E[Local testing (claimed)]
|
D --> E[Local testing: claimed]
|
||||||
E --> F[Periodic audit]
|
E --> F[Periodic audit]
|
||||||
F --> G{Still compliant?}
|
F --> G{Still compliant?}
|
||||||
G -->|Yes| D
|
G -->|Yes| D
|
||||||
|
|
|
||||||
|
|
@ -237,19 +237,19 @@ def _inferred_mermaid(title: str) -> str | None:
|
||||||
if "PULL REQUEST" in title_upper:
|
if "PULL REQUEST" in title_upper:
|
||||||
return """flowchart TD
|
return """flowchart TD
|
||||||
A[Code change] --> B[Pull request opened]
|
A[Code change] --> B[Pull request opened]
|
||||||
B --> C[Automated scan (PR checks)]
|
B --> C[Automated scan: PR checks]
|
||||||
C --> D{Findings?}
|
C --> D{Findings?}
|
||||||
D -->|None| E[Merge]
|
D -->|None| E[Merge]
|
||||||
D -->|Some| F[Ticket created]
|
D -->|Some| F[Ticket created]
|
||||||
F --> G[Exception request]
|
F --> G[Exception request]
|
||||||
G --> H[Alignment session]
|
G --> H[Alignment session]
|
||||||
H --> I[Risk accepted (documented)]
|
H --> I[Risk accepted: documented]
|
||||||
I --> E
|
I --> E
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if "SHIFTING LEFT" in title_upper:
|
if "SHIFTING LEFT" in title_upper:
|
||||||
return """flowchart TD
|
return """flowchart TD
|
||||||
A[Developer writes code] --> B[IDE scan (local)]
|
A[Developer writes code] --> B[IDE scan: local]
|
||||||
B --> C{Issue found?}
|
B --> C{Issue found?}
|
||||||
C -->|Yes| D[Fix now]
|
C -->|Yes| D[Fix now]
|
||||||
C -->|No| E[Commit]
|
C -->|No| E[Commit]
|
||||||
|
|
@ -264,7 +264,7 @@ def _inferred_mermaid(title: str) -> str | None:
|
||||||
A[Developer requests access] --> B[Upload screenshot]
|
A[Developer requests access] --> B[Upload screenshot]
|
||||||
B --> C[Attestation captured]
|
B --> C[Attestation captured]
|
||||||
C --> D[Access enabled]
|
C --> D[Access enabled]
|
||||||
D --> E[Local testing (claimed)]
|
D --> E[Local testing: claimed]
|
||||||
E --> F[Periodic audit]
|
E --> F[Periodic audit]
|
||||||
F --> G{Still compliant?}
|
F --> G{Still compliant?}
|
||||||
G -->|Yes| D
|
G -->|Yes| D
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue