git-next/crates/repo-actor
Paul Campbell 5bf0b16094
Some checks failed
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Rust / build (push) Has been cancelled
docs: rotate actor state diagram 90°
2024-06-30 12:01:39 +01:00
..
src fix: where repo config is in server should register webhook 2024-06-30 08:09:10 +01:00
Cargo.toml refactor: extract actor-macros crate 2024-06-29 10:49:12 +01:00
README.md docs: rotate actor state diagram 90° 2024-06-30 12:01:39 +01:00

stateDiagram-v2
direction LR

[*] --> CloneRepo :on start

CloneRepo --> LoadConfigFromRepo :on repo config
CloneRepo --> ValidateRepo :on server 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
ValidateRepo --> ValidateRepo :on invalid

CheckCIStatus --> ReceiveCIStatus

ReceiveCIStatus --> AdvanceMain :on Pass
ReceiveCIStatus --> ValidateRepo :on Pending
ReceiveCIStatus --> [*] :on Fail

AdvanceNext --> ValidateRepo

ReceiveRepoConfig --> ValidateRepo
ReceiveRepoConfig --> RegisterWebhook

RegisterWebhook --> WebhookRegistered

WebhookRegistered --> [*]

AdvanceMain --> LoadConfigFromRepo :on repo config
AdvanceMain --> ValidateRepo :on server config

[*] --> WebhookNotification :on push

WebhookNotification --> ValidateRepo