stateDiagram-v2
[*] --> CloneRepo :START
CloneRepo --> LoadConfigFromRepo
CloneRepo --> ValidateRepo
LoadConfigFromRepo --> LoadedConfig
ValidateRepo --> NextAheadOfMainCheckStatus
ValidateRepo --> DevAheadOfNextAdvanceNext
ValidateRepo --> ValidateRepo :on invalid SLEEP 10s
NextAheadOfMainCheckStatus --> AdvanceMainTo
NextAheadOfMainCheckStatus --> ValidateRepo :SLEEP 10s
DevAheadOfNextAdvanceNext --> ValidateRepo :SLEEP 10s
LoadedConfig --> ValidateRepo
LoadedConfig --> RegisterWebhook
RegisterWebhook --> WebhookRegistered
WebhookRegistered --> [*]
StartMonitoring --> AdvanceMainTo
StartMonitoring --> ValidateRepo :SLEEP 10s
AdvanceMainTo --> LoadConfigFromRepo
AdvanceMainTo --> ValidateRepo
[*] --> WebhookMessage :WEBHOOK
WebhookMessage --> ValidateRepo