2024-07-14 20:58:58 +01:00
|
|
|
```mermaid
|
|
|
|
stateDiagram-v2
|
2024-07-15 07:53:14 +01:00
|
|
|
SERVER --> CloneRepo :on start
|
|
|
|
SERVER --> UnRegisterWebhook :on shutdown
|
2024-07-14 20:58:58 +01:00
|
|
|
|
|
|
|
CloneRepo --> LoadConfigFromRepo :on repo config
|
|
|
|
CloneRepo --> RegisterWebhook :on server config
|
|
|
|
|
|
|
|
LoadConfigFromRepo --> ReceiveRepoConfig
|
|
|
|
|
|
|
|
ValidateRepo --> CheckCIStatus :on next ahead of main
|
|
|
|
ValidateRepo --> AdvanceNext :on dev ahead of next
|
|
|
|
ValidateRepo --> [*] :on dev == next == main
|
2024-07-24 08:35:29 +01:00
|
|
|
ValidateRepo --> USER :on non-retryable error
|
2024-07-14 20:58:58 +01:00
|
|
|
ValidateRepo --> ValidateRepo :on retryable error
|
|
|
|
|
|
|
|
CheckCIStatus --> ReceiveCIStatus
|
|
|
|
|
|
|
|
ReceiveCIStatus --> AdvanceMain :on Pass
|
|
|
|
ReceiveCIStatus --> ValidateRepo :on Pending
|
2024-07-24 08:35:29 +01:00
|
|
|
ReceiveCIStatus --> USER :on Fail
|
2024-07-14 20:58:58 +01:00
|
|
|
|
|
|
|
AdvanceNext --> ValidateRepo
|
|
|
|
|
|
|
|
ReceiveRepoConfig --> RegisterWebhook
|
|
|
|
|
|
|
|
RegisterWebhook --> WebhookRegistered
|
|
|
|
|
|
|
|
WebhookRegistered --> ValidateRepo
|
|
|
|
|
|
|
|
AdvanceMain --> LoadConfigFromRepo :on repo config
|
|
|
|
AdvanceMain --> ValidateRepo :on server config
|
|
|
|
|
2024-07-24 08:35:29 +01:00
|
|
|
FORGE --> WebhookNotification :on push
|
2024-07-14 20:58:58 +01:00
|
|
|
|
|
|
|
WebhookNotification --> ValidateRepo
|
|
|
|
```
|