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