stateDiagram-v2
[*] --> CloneRepo :Start
CloneRepo --> LoadConfigFromRepo
CloneRepo --> ValidateRepo
LoadConfigFromRepo --> LoadedConfig
ValidateRepo --> CheckCIStatus
ValidateRepo --> AdvanceNext
ValidateRepo --> ValidateRepo :invalid
CheckCIStatus --> AdvanceMain :Pass
CheckCIStatus --> ValidateRepo :Pending
CheckCIStatus --> [*] :Fail
AdvanceNext --> ValidateRepo
LoadedConfig --> ValidateRepo
LoadedConfig --> RegisterWebhook
RegisterWebhook --> WebhookRegistered
WebhookRegistered --> [*]
AdvanceMain --> LoadConfigFromRepo :on repo config - reload
AdvanceMain --> ValidateRepo :on server config
[*] --> WebhookMessage :WEBHOOK
WebhookMessage --> ValidateRepo