@synap-core/workspace-templates 0.76.0 → 0.76.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +127 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__fixtures__/dev-facts.merged.json +87 -0
- package/src/builder.yaml +76 -0
- package/src/dev-flow-change.template.test.ts +129 -0
- package/src/templates.ts +127 -0
package/dist/index.js
CHANGED
|
@@ -10434,6 +10434,133 @@ var DATA = {
|
|
|
10434
10434
|
}
|
|
10435
10435
|
]
|
|
10436
10436
|
}
|
|
10437
|
+
},
|
|
10438
|
+
{
|
|
10439
|
+
"key": "merged-pull-request-settles-change",
|
|
10440
|
+
"name": "A merged pull request settles its change",
|
|
10441
|
+
"description": "A dev.pr_merged fact into the default branch moves the pull request's change to Merged when GitHub's own event did not: a change already Merged, or a pull request with no change, moves nothing.",
|
|
10442
|
+
"triggerType": "event",
|
|
10443
|
+
"triggerConfig": {
|
|
10444
|
+
"eventPattern": "dev.pr_merged"
|
|
10445
|
+
},
|
|
10446
|
+
"status": "active",
|
|
10447
|
+
"flow": {
|
|
10448
|
+
"nodes": [
|
|
10449
|
+
{
|
|
10450
|
+
"id": "t",
|
|
10451
|
+
"type": "trigger",
|
|
10452
|
+
"position": {
|
|
10453
|
+
"x": 0,
|
|
10454
|
+
"y": 0
|
|
10455
|
+
},
|
|
10456
|
+
"data": {
|
|
10457
|
+
"label": "A pull request merged",
|
|
10458
|
+
"triggerType": "event",
|
|
10459
|
+
"config": {
|
|
10460
|
+
"eventPattern": "dev.pr_merged"
|
|
10461
|
+
}
|
|
10462
|
+
}
|
|
10463
|
+
},
|
|
10464
|
+
{
|
|
10465
|
+
"id": "into-default",
|
|
10466
|
+
"type": "condition",
|
|
10467
|
+
"position": {
|
|
10468
|
+
"x": 0,
|
|
10469
|
+
"y": 120
|
|
10470
|
+
},
|
|
10471
|
+
"data": {
|
|
10472
|
+
"label": "It merged into the default branch",
|
|
10473
|
+
"expression": 'trigger.payload.data.intoDefault == "true"'
|
|
10474
|
+
}
|
|
10475
|
+
},
|
|
10476
|
+
{
|
|
10477
|
+
"id": "find",
|
|
10478
|
+
"type": "query",
|
|
10479
|
+
"position": {
|
|
10480
|
+
"x": 0,
|
|
10481
|
+
"y": 240
|
|
10482
|
+
},
|
|
10483
|
+
"data": {
|
|
10484
|
+
"label": "Its change",
|
|
10485
|
+
"profileSlug": "change",
|
|
10486
|
+
"limit": 1,
|
|
10487
|
+
"filter": '{"prRef": "{{trigger.payload.data.repo}}#{{trigger.payload.data.number}}"}'
|
|
10488
|
+
}
|
|
10489
|
+
},
|
|
10490
|
+
{
|
|
10491
|
+
"id": "has-change",
|
|
10492
|
+
"type": "condition",
|
|
10493
|
+
"position": {
|
|
10494
|
+
"x": 0,
|
|
10495
|
+
"y": 360
|
|
10496
|
+
},
|
|
10497
|
+
"data": {
|
|
10498
|
+
"label": "It has a change",
|
|
10499
|
+
"expression": "steps.find.output.count >= 1"
|
|
10500
|
+
}
|
|
10501
|
+
},
|
|
10502
|
+
{
|
|
10503
|
+
"id": "not-merged",
|
|
10504
|
+
"type": "condition",
|
|
10505
|
+
"position": {
|
|
10506
|
+
"x": 0,
|
|
10507
|
+
"y": 480
|
|
10508
|
+
},
|
|
10509
|
+
"data": {
|
|
10510
|
+
"label": "Its change is not Merged yet",
|
|
10511
|
+
"expression": 'steps.find.output.entities[0].properties.changeStatus != "merged"'
|
|
10512
|
+
}
|
|
10513
|
+
},
|
|
10514
|
+
{
|
|
10515
|
+
"id": "settle",
|
|
10516
|
+
"type": "output",
|
|
10517
|
+
"position": {
|
|
10518
|
+
"x": 0,
|
|
10519
|
+
"y": 600
|
|
10520
|
+
},
|
|
10521
|
+
"data": {
|
|
10522
|
+
"label": "The change is Merged",
|
|
10523
|
+
"outputType": "entity_update",
|
|
10524
|
+
"config": {
|
|
10525
|
+
"entityId": "{{steps.find.output.entities[0].id}}",
|
|
10526
|
+
"properties": {
|
|
10527
|
+
"changeStatus": "merged"
|
|
10528
|
+
}
|
|
10529
|
+
}
|
|
10530
|
+
}
|
|
10531
|
+
}
|
|
10532
|
+
],
|
|
10533
|
+
"edges": [
|
|
10534
|
+
{
|
|
10535
|
+
"id": "t--into-default",
|
|
10536
|
+
"source": "t",
|
|
10537
|
+
"target": "into-default"
|
|
10538
|
+
},
|
|
10539
|
+
{
|
|
10540
|
+
"id": "into-default--find",
|
|
10541
|
+
"source": "into-default",
|
|
10542
|
+
"target": "find",
|
|
10543
|
+
"sourceHandle": "yes"
|
|
10544
|
+
},
|
|
10545
|
+
{
|
|
10546
|
+
"id": "find--has-change",
|
|
10547
|
+
"source": "find",
|
|
10548
|
+
"target": "has-change"
|
|
10549
|
+
},
|
|
10550
|
+
{
|
|
10551
|
+
"id": "has-change--not-merged",
|
|
10552
|
+
"source": "has-change",
|
|
10553
|
+
"target": "not-merged",
|
|
10554
|
+
"sourceHandle": "yes"
|
|
10555
|
+
},
|
|
10556
|
+
{
|
|
10557
|
+
"id": "not-merged--settle",
|
|
10558
|
+
"source": "not-merged",
|
|
10559
|
+
"target": "settle",
|
|
10560
|
+
"sourceHandle": "yes"
|
|
10561
|
+
}
|
|
10562
|
+
]
|
|
10563
|
+
}
|
|
10437
10564
|
}
|
|
10438
10565
|
],
|
|
10439
10566
|
"skills": [
|