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