You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/send-notification-flow.md
+63-17
Original file line number
Diff line number
Diff line change
@@ -17,11 +17,13 @@ The git repository sends a webhook to the bot if any event occurs. The webhook c
17
17
### The bot processes the webhook message
18
18
19
19
When an application receives a webhook message from the git repository, the bot processes the webhook message.
20
-
It checks if the webhook is set or not. If the event has any actions and the event is allowed notify in the settings, etc.
20
+
It checks if the webhook is set or not. If the event has any actions and the event is allowed notify in the settings,
21
+
etc.
21
22
22
23
### The bot gets the message details if the event is valid
23
24
24
-
If the event/action is valid, the bot will get the message details of this event/action and set the message details to the message
25
+
If the event/action is valid, the bot will get the message details of this event/action and set the message details to
26
+
the message
25
27
object.
26
28
27
29
### The bot sends a notification
@@ -49,11 +51,11 @@ the `telegram-git-notifier` functionality, including configuration and views for
49
51
50
52
## Entity Relationship Diagram
51
53
52
-
53
54
> [!NOTE]
54
55
> The following diagram is a simplified version of the entity relationship diagram for the Telegram Git Notifier.
55
-
>
56
-
> The data is **still saved in JSON format**. I don't use database storage because I don't want to **affect any data on your real system**. Its purpose is only to clarify the feature's operating model.
56
+
>
57
+
> The data is **still saved in JSON format**. I don't use database storage because I don't want to **affect any data on
58
+
your real system**. Its purpose is only to clarify the feature's operating model.
57
59
58
60
```mermaid
59
61
erDiagram
@@ -128,7 +130,7 @@ flowchart TD
128
130
subgraph "User and Repository Interaction"
129
131
webhook --> user[User]
130
132
user --> addWebhookToRepo[Add webhook to repository]
131
-
addWebhookToRepo --> repository[Repository]
133
+
addWebhookToRepo --> repository[Git Repository]
132
134
user --> ownsRepo[Owns]
133
135
ownsRepo --> repository
134
136
end
@@ -137,13 +139,27 @@ flowchart TD
137
139
triggerEvent --> sendPayload[Send event payload to bot]
0 commit comments