Skip to content

Commit

Permalink
feat: replace events-controller.png with mermaid diagram (runatlantis…
Browse files Browse the repository at this point in the history
…#4608)

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 authored and terakoya76 committed Dec 31, 2024
1 parent 232d5a5 commit d84bca7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion runatlantis.io/contributing/events-controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,43 @@ Atlantis currently handles one of the following events:

All the other events are ignored.

![Events Controller flow](./images/events-controller.png)
```mermaid
---
title: events controller flowchart
---
flowchart LR
events(/events - Endpoint) --> Comment_Event(Comment - Event)
events --> Pull_Request_Event(Pull Request - Event)
Comment_Event --> pre_workflow(pre-workflow - Hook)
pre_workflow --> plan(plan - command)
pre_workflow --> apply(apply - command)
pre_workflow --> approve_policies(approve policies - command)
pre_workflow --> unlock(unlock - command)
pre_workflow --> version(version - command)
pre_workflow --> import(import - command)
pre_workflow --> state(state - command)
plan --> post_workflow(post-workflow - Hook)
apply --> post_workflow
approve_policies --> post_workflow
unlock --> post_workflow
version --> post_workflow
import --> post_workflow
state --> post_workflow
Pull_Request_Event --> Open_Update_PR(Open / Update Pull Request)
Pull_Request_Event --> Close_PR(Close Pull Request)
Open_Update_PR --> pre_workflow(pre-workflow - Hook)
Close_PR --> plan(plan - command)
pre_workflow --> plan
plan --> post_workflow(post-workflow - Hook)
Close_PR --> CleanUpPull(CleanUpPull)
CleanUpPull --> post_workflow(post-workflow - Hook)
```

## Comment Event

Expand Down
Binary file not shown.

0 comments on commit d84bca7

Please sign in to comment.