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/execution-model.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,16 +42,19 @@ The `triggers` section in gitStream gives you precise control over when automati
42
42
43
43
Additionally, the `on` keyword defines specific events that trigger automations. It can be added at the file level (under the `triggers` section) or within individual automations for greater customization. Multiple triggers can be stacked, meaning gitStream will execute the automation for each matching triggering event, allowing flexibility in defining automation behavior
@@ -67,6 +70,7 @@ The table below lists supported explicit triggers, categorized into those enable
67
70
| :fontawesome-brands-github: transition from any state to closed |`pr_closed`|`off`|
68
71
| :fontawesome-brands-github: transition from closed to open |`pr_reopened`|`off`|
69
72
| :fontawesome-brands-github: Transition from any state to approved |`pr_approved`| If there is an automation with one of the actions: `require-reviewers`, `set-required-approvals` or `merge`, or uses `pr.approvals` context variable |
73
+
</div>
70
74
71
75
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.
72
76
If an automation block does not have explicit triggers configured, it will be triggered according to the default (implicit) triggers.
@@ -145,6 +149,9 @@ triggers:
145
149
146
150
automations:
147
151
bump_minor:
152
+
on:
153
+
- pr_created
154
+
- commit
148
155
if:
149
156
- {{ bump == 'minor' }}
150
157
- {{ branch.name | includes(term="dependabot") }}
@@ -157,6 +164,9 @@ automations:
157
164
Dependabot `minor` version bumps are approved automatically.
0 commit comments