Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions pkg/spec/pipeline.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,26 @@ nouns:
expr: it.type
- id: enabled
expr: it.enabled
- id: description
expr: it.description
- id: pipeline
expr: coalesce(it.targetIdentifier, ctx.idParts[0])
- id: tags
expr: formatTagDisplay(it.tags)
- id: webhook_url
expr: it.webhookUrl
- id: last_execution_status
expr: '(it.lastTriggerExecutionDetails != nil && it.lastTriggerExecutionDetails.lastExecutionSuccessful == true) ? "Passed" : "Failed"'
- id: last_execution_time
expr: epochMs(it.lastTriggerExecutionDetails.lastExecutionTime)
- id: last_execution_id
expr: it.lastTriggerExecutionDetails.planExecutionId
- id: last_execution_message
expr: it.lastTriggerExecutionDetails.message
width_max: 60
- id: yaml
expr: it.yaml
field_type: yaml

- noun: input_set
short_desc: A reusable set of runtime inputs that can be applied when running a pipeline.
Expand Down Expand Up @@ -882,7 +902,7 @@ commands:
endpoint:
path: /pipeline/api/triggers
items_expr: it.data.content
get_id_expr: it.identifier
get_id_expr: ctx.parentId + "/" + it.identifier
completion:
id_expr: it.identifier
name_expr: it.name
Expand All @@ -897,7 +917,7 @@ commands:
page_size_default: 25
page_size_max: 100
total_expr: it.data.totalItems
columns: [identifier, name, type, enabled]
columns: [identifier, name, type, enabled, last_execution_status, tags]

- command: get trigger
verb: get
Expand All @@ -911,8 +931,8 @@ commands:
keep_order: true
handler_type: endpoint
endpoint:
path: /pipeline/api/triggers/{{lastPart(ctx.id)}}
item_expr: it.data
path: /pipeline/api/triggers
item_expr: find(it.data.content, .identifier == lastPart(ctx.id))
query_params:
targetIdentifier: ctx.idParts[0]

Expand Down