Skip to content

Commit cfec63b

Browse files
chore: fix incident router example (#1870)
1 parent c7f3a99 commit cfec63b

File tree

1 file changed

+11
-118
lines changed

1 file changed

+11
-118
lines changed

templates/canvases/incident-router.yaml

Lines changed: 11 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ spec:
1111
channel: "C09AJT3BF1Q"
1212
metadata: null
1313
position:
14-
x: 320
15-
"y": 500
14+
x: 319
15+
"y": 501
1616
component: null
1717
blueprint: null
1818
trigger:
1919
name: "slack.onAppMention"
2020
widget: null
2121
isCollapsed: false
2222
integration: null
23-
errorMessage: ""
23+
errorMessage: "integration is required"
2424
warningMessage: ""
2525
- id: "component-node-micxb6"
2626
name: "filter"
@@ -67,8 +67,8 @@ spec:
6767
model: "gpt-5.2"
6868
metadata: null
6969
position:
70-
x: 1421
71-
"y": 680
70+
x: 1427
71+
"y": 675
7272
component:
7373
name: "openai.textPrompt"
7474
blueprint: null
@@ -99,7 +99,7 @@ spec:
9999
blueprint: null
100100
trigger: null
101101
widget: null
102-
isCollapsed: false
102+
isCollapsed: true
103103
integration: null
104104
errorMessage: ""
105105
warningMessage: ""
@@ -123,7 +123,7 @@ spec:
123123
blueprint: null
124124
trigger: null
125125
widget: null
126-
isCollapsed: false
126+
isCollapsed: true
127127
integration: null
128128
errorMessage: ""
129129
warningMessage: ""
@@ -200,116 +200,9 @@ spec:
200200
id: 1046227550
201201
name: "terraform"
202202
url: "https://github.com/puppies-inc/terraform"
203-
position:
204-
x: 322
205-
"y": 886
206-
component: null
207-
blueprint: null
208-
trigger:
209-
name: "github.onIssueComment"
210-
widget: null
211-
isCollapsed: false
212-
integration: null
213-
errorMessage: ""
214-
warningMessage: ""
215-
- id: "merge-merge-jjlkwm"
216-
name: "Wait for both Title and Description"
217-
type: "TYPE_COMPONENT"
218-
configuration:
219-
enableStopIf: false
220-
enableTimeout: true
221-
executionTimeout:
222-
unit: "minutes"
223-
value: 2
224-
metadata: null
225-
position:
226-
x: 1922
227-
"y": 500
228-
component:
229-
name: "merge"
230-
blueprint: null
231-
trigger: null
232-
widget: null
233-
isCollapsed: true
234-
integration: null
235-
errorMessage: ""
236-
warningMessage: ""
237-
- id: "component-node-doptqx"
238-
name: "Send Slack Notification"
239-
type: "TYPE_COMPONENT"
240-
configuration:
241-
text: "New P1 incident!\n\nLink to the incident: {{$['Create PD incident'].data.incident.html_url}}\n\nLink to the issue: {{$['Create issue on GitHub'].data.url}}"
242-
metadata: null
243-
position:
244-
x: 3011
245-
"y": 464
246-
component:
247-
name: "slack.sendTextMessage"
248-
blueprint: null
249-
trigger: null
250-
widget: null
251-
isCollapsed: true
252-
integration: null
253-
errorMessage: "field 'channel' is required"
254-
warningMessage: ""
255-
- id: "github-onissue-github-onissue-aq6dfc"
256-
name: "Listen to new Issues"
257-
type: "TYPE_TRIGGER"
258-
configuration:
259-
actions:
260-
- "opened"
261-
repository: "terraform"
262-
metadata:
263-
repository:
264-
id: 1046227550
265-
name: "terraform"
266-
url: "https://github.com/puppies-inc/terraform"
267203
position:
268204
x: 319
269-
"y": 677
270-
component: null
271-
blueprint: null
272-
trigger:
273-
name: "github.onIssue"
274-
widget: null
275-
isCollapsed: false
276-
integration: null
277-
errorMessage: ""
278-
warningMessage: ""
279-
- id: "annotation-annotation5-601278"
280-
name: "annotation5"
281-
type: "TYPE_WIDGET"
282-
configuration:
283-
color: "yellow"
284-
height: 251
285-
text: "### 1. Listen to external resources\n\nTrigger components listen for events from external systems, such as new GitHub issues, issue comments, or mentions of the SuperPlane Slack app.\n\n___\nTo use this example, connect your GitHub and Slack accounts:\n\n- Click each node\n- Follow the connection instructions for GitHub and Slack\n- Configure the required settings (GitHub repository, Slack channel)\n"
286-
width: 491
287-
metadata: null
288-
position:
289-
x: 246
290-
"y": 175
291-
component: null
292-
blueprint: null
293-
trigger: null
294-
widget:
295-
name: "annotation"
296-
isCollapsed: false
297-
integration: null
298-
errorMessage: ""
299-
warningMessage: ""
300-
- id: "github-onissuecomment-github-onissuecomment-fyflwt"
301-
name: "Listen to issue Comments"
302-
type: "TYPE_TRIGGER"
303-
configuration:
304-
repository: "terraform"
305-
metadata:
306-
repository:
307-
id: 1046227550
308-
name: "terraform"
309-
url: "https://github.com/puppies-inc/terraform"
310-
position:
311-
x: 320
312-
"y": 910
205+
"y": 920
313206
component: null
314207
blueprint: null
315208
trigger:
@@ -372,8 +265,8 @@ spec:
372265
name: "terraform"
373266
url: "https://github.com/puppies-inc/terraform"
374267
position:
375-
x: 320
376-
"y": 700
268+
x: 319
269+
"y": 710
377270
component: null
378271
blueprint: null
379272
trigger:
@@ -437,4 +330,4 @@ spec:
437330
channel: "default"
438331
- sourceId: "github-onissue-github-onissue-aq6dfc"
439332
targetId: "component-node-micxb6"
440-
channel: "default"
333+
channel: "default"

0 commit comments

Comments
 (0)