Commit 39afc85d authored by Simon Latapie's avatar Simon Latapie
Browse files

doc: make decision graphs a bit fancier

parent 8df30329
Pipeline #91421 passed with stages
in 24 seconds
......@@ -21,34 +21,50 @@ Homer uses a simple decision graph to determine the status of the merge requests
```mermaid
graph TD
Submitted --> Q1{Is it mergeable?}
Q1 -->|Yes| PipelineReady
Q1 -->|No| NotCompliant
Q1 -->|Cannot determine| QuantumState
Submitted([Submitted]) --> Q1{Is it mergeable?}
Q1 -->|Yes| PipelineReady([PipelineReady])
Q1 -->|No| NotCompliant([NotCompliant])
Q1 -->|Cannot determine| QuantumState([QuantumState])
PipelineReady --> Q2{Is CI OK?}
Q2 -->|Yes| Reviewable
Q2 -->|Yes| Reviewable([Reviewable])
Q2 -->|No| NotCompliant
Q2 -->|Cannot determine| PipelineNotFinished
Reviewable -->|"No vote and No thread opened during 72h"| Accepted
Reviewable -->|"Thread opened or a Developer voted"| InReview
InReview -->|"All threads resolved and Score >= 0"| Acceptable
Q2 -->|Cannot determine| PipelineNotFinished([PipelineNotFinished])
Reviewable -->|"No vote and No thread opened during 72h"| Accepted([Accepted])
Reviewable -->|"Thread opened or a Developer voted"| InReview([InReview])
InReview -->|"All threads resolved and Score >= 0"| Acceptable([Acceptable])
Acceptable -->|Wait for 24h| Accepted
classDef default fill:#fff,stroke-width:2px
classDef internal stroke-dasharray: 5 5
class Submitted,PipelineReady,QuantumState,PipelineNotFinished internal
style Acceptable color:#8fbc8f,stroke:#8fbc8f
style Accepted color:#009966,stroke:#009966
style InReview color:#FF8800,stroke:#FF8800
style NotCompliant color:#6699cc,stroke:#6699cc
style Reviewable color:#FF610A,stroke:#FF610A
```
### If the MergeRequest author is **NOT** a project's developer
```mermaid
graph TD
Submitted --> Q1{Is it mergeable?}
Q1 -->|Yes| PipelineReady
Q1 -->|No| NotCompliant
Q1 -->|Cannot determine| QuantumState
Submitted([Submitted]) --> Q1{Is it mergeable?}
Q1 -->|Yes| PipelineReady([PipelineReady])
Q1 -->|No| NotCompliant([NotCompliant])
Q1 -->|Cannot determine| QuantumState([QuantumState])
PipelineReady --> Q2{Is CI OK?}
Q2 -->|Yes| Reviewable
Q2 -->|Cannot determine| PipelineNotFinished([PipelineNotFinished])
Q2 -->|No| NotCompliant
Q2 -->|Cannot determine| PipelineNotFinished
Reviewable -->|"Thread opened or a Developer voted"| InReview
InReview -->|"All threads resolved and Score > 0"| Acceptable
Acceptable -->|Wait for 72h| Accepted
Q2 -->|Yes| Reviewable([Reviewable])
Reviewable -->|"Thread opened or a Developer voted"| InReview([InReview])
InReview -->|"All threads resolved and Score > 0"| Acceptable([Acceptable])
Acceptable -->|Wait for 72h| Accepted([Accepted])
classDef default fill:#fff,stroke-width:2px
classDef internal stroke-dasharray: 5 5
class Submitted,PipelineReady,QuantumState,PipelineNotFinished internal
style Acceptable color:#8fbc8f,stroke:#8fbc8f
style Accepted color:#009966,stroke:#009966
style InReview color:#FF8800,stroke:#FF8800
style NotCompliant color:#6699cc,stroke:#6699cc
style Reviewable color:#FF610A,stroke:#FF610A
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment