2024-06-19 07:03:08 +01:00
|
|
|
```mermaid
|
|
|
|
stateDiagram-v2
|
2024-06-30 08:00:51 +01:00
|
|
|
[*] --> CloneRepo :on start
|
2024-06-19 07:03:08 +01:00
|
|
|
|
2024-06-30 07:41:13 +01:00
|
|
|
CloneRepo --> LoadConfigFromRepo :on repo config
|
|
|
|
CloneRepo --> ValidateRepo :on server config
|
2024-06-30 08:09:10 +01:00
|
|
|
CloneRepo --> RegisterWebhook :on server config
|
2024-06-19 07:03:08 +01:00
|
|
|
|
|
|
|
LoadConfigFromRepo --> ReceiveRepoConfig
|
|
|
|
|
2024-06-30 07:41:13 +01:00
|
|
|
ValidateRepo --> CheckCIStatus :on next ahead of main
|
|
|
|
ValidateRepo --> AdvanceNext :on dev ahead of next
|
|
|
|
ValidateRepo --> [*] :on dev == next == main
|
|
|
|
ValidateRepo --> ValidateRepo :on invalid
|
2024-06-19 07:03:08 +01:00
|
|
|
|
|
|
|
CheckCIStatus --> ReceiveCIStatus
|
|
|
|
|
2024-06-30 07:41:13 +01:00
|
|
|
ReceiveCIStatus --> AdvanceMain :on Pass
|
|
|
|
ReceiveCIStatus --> ValidateRepo :on Pending
|
|
|
|
ReceiveCIStatus --> [*] :on Fail
|
2024-06-19 07:03:08 +01:00
|
|
|
|
|
|
|
AdvanceNext --> ValidateRepo
|
|
|
|
|
|
|
|
ReceiveRepoConfig --> ValidateRepo
|
|
|
|
ReceiveRepoConfig --> RegisterWebhook
|
|
|
|
|
|
|
|
RegisterWebhook --> WebhookRegistered
|
|
|
|
|
|
|
|
WebhookRegistered --> [*]
|
|
|
|
|
2024-06-30 07:41:13 +01:00
|
|
|
AdvanceMain --> LoadConfigFromRepo :on repo config
|
2024-06-19 07:03:08 +01:00
|
|
|
AdvanceMain --> ValidateRepo :on server config
|
|
|
|
|
2024-06-30 07:41:13 +01:00
|
|
|
[*] --> WebhookNotification :on push
|
2024-06-19 07:03:08 +01:00
|
|
|
|
|
|
|
WebhookNotification --> ValidateRepo
|
|
|
|
```
|