Skip to content

Commit 120e0e7

Browse files
authored
Update execution model trigger conditions (#803)
Standardize condition descriptions to consistently reference context usage rather than specific properties. Move GitHub icons to the end of trigger names for better readability.
1 parent 87801c1 commit 120e0e7

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/execution-model.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@ The table below lists supported explicit triggers, categorized into those enable
6666
| Triggering event | Explicit Trigger :fontawesome-brands-github: | Default | Conditions |
6767
| --------------------------------------------------------------------- | -------------------------------------------- | ------- | ------------- |
6868
| Checks finished | - | `on` | when an automation uses the `wait_for_all_checks` action |
69-
| Comment added | `comment_added` | `on` | when `pr.comment` in `.cm` |
70-
| :fontawesome-brands-github: Comment edited | - | `on` | when `pr.comment` in `.cm` |
71-
| Commit pushed | `commit` | `on` | |
72-
| Creating a PR | `pr_created` | `on` | when not a draft |
73-
| Description changed | - | `on` | when `pr.description` in `.cm` |
74-
| Label added | `label_added` | `on` | when `pr.label` in `.cm` |
75-
| Label removed | `label_removed` | `on` | when `pr.label` in `.cm` |
76-
| :fontawesome-brands-github: Merging the PR | `merge` | `off` | |
77-
| Title change | - | `on` | when `pr.title` in `.cm` |
78-
| Transition from draft to ready for review | `pr_ready_for_review` | `on` | |
79-
| :fontawesome-brands-github: Transition from any state to closed | `pr_closed` | `off` | |
80-
| :fontawesome-brands-github: Transition from closed to open | `pr_reopened` | `off` | |
81-
| :fontawesome-brands-github: Transition from any state to approved | `pr_approved` | `on` | If there is an automation with one of the actions: `require-reviewers`, `set-required-approvals` or `merge`, or uses `pr.approvals` context variable |
69+
| Comment added | `comment_added` | `on` | when `pr` context is used in `.cm` |
70+
| Comment edited :fontawesome-brands-github: | - | `on` | when `pr` context is used in `.cm` |
71+
| Commit pushed | `commit` | `on` | |
72+
| Creating a PR | `pr_created` | `on` | when not a draft |
73+
| Description changed | - | `on` | when `pr` context is used in `.cm` |
74+
| Label added | `label_added` | `on` | when `pr` context is used in `.cm` |
75+
| Label removed | `label_removed` | `on` | when `pr` context is used in `.cm` |
76+
| Merging the PR :fontawesome-brands-github: | `merge` | `off` | |
77+
| Title changed | - | `on` | when `pr` context is used in `.cm` |
78+
| Transition from draft to ready for review | `pr_ready_for_review` | `on` | |
79+
| Transition from any state to closed :fontawesome-brands-github: | `pr_closed` | `off` | |
80+
| Transition from closed to open :fontawesome-brands-github: | `pr_reopened` | `off` | |
81+
| Transition from any state to approved :fontawesome-brands-github: | `pr_approved` | `on` | when actions `require-reviewers`, `set-required-approvals`, or `merge` are used, or when `pr` context is used in `.cm` |
8282
</div>
8383

8484
Explicit triggers are set independently per each automation block and can be configured at the file level, specific to each automation separately or in combination. If triggers are listed at the file level **and** specific automation, the automation will be triggered according to both triggers.

0 commit comments

Comments
 (0)