Skip to content

Commit f658c7d

Browse files
refactor: rename branch to fork
Signed-off-by: Matthias Pichler <[email protected]>
1 parent 270deb1 commit f658c7d

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

ctk/features/composite.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ Feature: Composite Task
4040
name: composite-sequential
4141
do:
4242
- branchWithCompete:
43-
branch:
43+
fork:
4444
compete: true
45-
on:
45+
branches:
4646
- setRed:
4747
set:
4848
colors: ${ .colors + ["red"] }

dsl-reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,9 @@ do:
416416

417417
| Name | Type | Required | Description|
418418
|:--|:---:|:---:|:---|
419-
| do | [`map[string, task][]`](#task) | `no` | The tasks to perform sequentially.<br>*Required if `branch` has not been set, otherwise ignored.*<br>*If set, must contains **at least** two [`tasks`](#task).* |
420-
| branch.on | [`map[string, task][]`](#task) | `no` | The tasks to perform concurrently.<br>*Required if `do` has not been set, otherwise ignored.*<br>*If set, must contains **at least** two [`tasks`](#task).* |
421-
| branch.compete | `boolean` | `no` | Indicates whether or not the concurrent [`tasks`](#task) are racing against each other, with a single possible winner, which sets the composite task's output.<br>*Ignored if `do` has been set. Defaults to `false`.*<br>*Must **not** be set if the [`tasks`](#task) are executed sequentially.* |
419+
| do | [`map[string, task][]`](#task) | `no` | The tasks to perform sequentially.<br>*Required if `fork` has not been set, otherwise ignored.*<br>*If set, must contains **at least** two [`tasks`](#task).* |
420+
| fork.branches | [`map[string, task][]`](#task) | `no` | The tasks to perform concurrently.<br>*Required if `do` has not been set, otherwise ignored.*<br>*If set, must contains **at least** two [`tasks`](#task).* |
421+
| fork.compete | `boolean` | `no` | Indicates whether or not the concurrent [`tasks`](#task) are racing against each other, with a single possible winner, which sets the composite task's output.<br>*Ignored if `do` has been set. Defaults to `false`.*<br>*Must **not** be set if the [`tasks`](#task) are executed sequentially.* |
422422

423423
##### Examples
424424

@@ -474,9 +474,9 @@ document:
474474
version: '0.1.0'
475475
do:
476476
- raiseAlarm:
477-
branch:
477+
fork:
478478
compete: true
479-
on:
479+
branches:
480480
- callNurse:
481481
call: http
482482
with:

schema/workflow.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@ $defs:
291291
- $ref: '#/$defs/taskBase'
292292
type: object
293293
unevaluatedProperties: false
294-
required: [ branch ]
294+
required: [ fork ]
295295
properties:
296-
branch:
296+
fork:
297297
type: object
298-
required: [ 'on' ]
298+
required: [ branches ]
299299
properties:
300-
on:
300+
branches:
301301
$ref: '#/$defs/taskList'
302302
compete:
303303
description: Indicates whether or not the concurrent tasks are racing against each other, with a single possible winner, which sets the composite task's output.

0 commit comments

Comments
 (0)