Skip to content

Commit c5d565b

Browse files
saas-1592 - add build started time (#283)
1 parent 7c8872f commit c5d565b

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

lib/logic/api/workflow.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const _extractFieldsForWorkflowEntity = (workflow) => {
1616
return {
1717
id: workflow.id,
1818
created: workflow.created ? new Date(workflow.created) : undefined,
19+
started: workflow.started ? new Date(workflow.started) : undefined,
1920
finished: workflow.finished ? new Date(workflow.finished) : undefined,
2021
totalTime,
2122
status: workflow.status,

lib/logic/entities/Workflow.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ class Workflow extends Entity {
55
super();
66
this.entityType = 'workflow';
77
this.info = data;
8-
this.defaultColumns = ['id', 'pipeline-name', 'status', 'created', 'finished', 'totalTime', 'trigger', 'repository', 'branch'];
8+
this.defaultColumns = [
9+
'id', 'pipeline-name', 'status', 'created', 'started', 'finished', 'totalTime', 'trigger', 'repository', 'branch',
10+
];
911
this.wideColumns = [
1012
'id',
1113
'pipeline-name',
1214
'pipeline-Id',
1315
'status',
1416
'created',
17+
'started',
1518
'finished',
1619
'totalTime',
1720
'trigger',

lib/output/formatters/Workflow.formatter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const STATUS_CHOICES = {
2020
const FORMATTER = Formatter.build()
2121
.style('status', input => (STATUS_CHOICES[input] || Style).bold.uppercase(input))
2222
.style('created', Style.datetime)
23+
.style('started', Style.datetime)
2324
.style('finished', Style.datetime);
2425

2526

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.13.1",
3+
"version": "0.13.2",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)