Skip to content

Commit 88b8204

Browse files
committed
docs: add the platform detection in the flowchart
1 parent 3705f96 commit 88b8204

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

docs/send-notification-flow.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ flowchart TD
130130
subgraph "User and Repository Interaction"
131131
webhook --> user[User]
132132
user --> addWebhookToRepo[Add webhook to repository]
133-
addWebhookToRepo --> repository[Repository]
133+
addWebhookToRepo --> repository[Git Repository]
134134
user --> ownsRepo[Owns]
135135
ownsRepo --> repository
136136
end
@@ -139,13 +139,27 @@ flowchart TD
139139
triggerEvent --> sendPayload[Send event payload to bot]
140140
sendPayload --> bot
141141
142-
subgraph "Event Processing"
143-
bot --> processEvent{Process event}
144-
processEvent --> checkAction{Is there an action?}
145-
checkAction -->|Yes| actionMessage[Event type: Action]
146-
checkAction -->|No| eventNameMessage[Event type: Event name]
147-
eventNameMessage --> checkSettings{Is event allowed in settings?}
148-
actionMessage --> checkSettings
142+
subgraph "Bot Processing"
143+
bot --> detectPlatform{Detect platform}
144+
145+
subgraph "Platform Detection"
146+
detectPlatform -->|GitHub| setGithubPlatform[Set GitHub platform]
147+
detectPlatform -->|GitLab| setGitlabPlatform[Set GitLab platform]
148+
setGithubPlatform --> getGithubPlatformFile[Get GitHub platform file]
149+
setGitlabPlatform --> getGitlabPlatformFile[Get GitLab platform file]
150+
end
151+
152+
getGithubPlatformFile --> setEventConfig[Set event config]
153+
getGitlabPlatformFile --> setEventConfig[Set event config]
154+
setEventConfig --> processEvent{Process event}
155+
156+
subgraph "Event Processing"
157+
processEvent --> checkAction{Is there an action?}
158+
checkAction -->|Yes| actionMessage[event_type: Action of event]
159+
checkAction -->|No| eventNameMessage[event_type: Event name]
160+
eventNameMessage --> checkSettings{Is event_type allowed in settings?}
161+
actionMessage --> checkSettings
162+
end
149163
end
150164
151165
checkSettings -->|Yes| findTemplate{Find message template}

0 commit comments

Comments
 (0)