Skip to content

Commit 1f3c5a5

Browse files
author
Dustin Lish
authored
Add created_at to WorkflowJob struct (#2671)
1 parent e7e7149 commit 1f3c5a5

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

github/actions_workflow_jobs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type WorkflowJob struct {
3333
HTMLURL *string `json:"html_url,omitempty"`
3434
Status *string `json:"status,omitempty"`
3535
Conclusion *string `json:"conclusion,omitempty"`
36+
CreatedAt *Timestamp `json:"created_at,omitempty"`
3637
StartedAt *Timestamp `json:"started_at,omitempty"`
3738
CompletedAt *Timestamp `json:"completed_at,omitempty"`
3839
Name *string `json:"name,omitempty"`

github/actions_workflow_jobs_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ func TestWorkflowJob_Marshal(t *testing.T) {
251251
HTMLURL: String("h"),
252252
Status: String("s"),
253253
Conclusion: String("c"),
254+
CreatedAt: &Timestamp{referenceTime},
254255
StartedAt: &Timestamp{referenceTime},
255256
CompletedAt: &Timestamp{referenceTime},
256257
Name: String("n"),
@@ -278,6 +279,7 @@ func TestWorkflowJob_Marshal(t *testing.T) {
278279
"html_url": "h",
279280
"status": "s",
280281
"conclusion": "c",
282+
"created_at": ` + referenceTimeStr + `,
281283
"started_at": ` + referenceTimeStr + `,
282284
"completed_at": ` + referenceTimeStr + `,
283285
"name": "n",
@@ -312,6 +314,7 @@ func TestJobs_Marshal(t *testing.T) {
312314
HTMLURL: String("h"),
313315
Status: String("s"),
314316
Conclusion: String("c"),
317+
CreatedAt: &Timestamp{referenceTime},
315318
StartedAt: &Timestamp{referenceTime},
316319
CompletedAt: &Timestamp{referenceTime},
317320
Name: String("n"),
@@ -344,6 +347,7 @@ func TestJobs_Marshal(t *testing.T) {
344347
"html_url": "h",
345348
"status": "s",
346349
"conclusion": "c",
350+
"created_at": ` + referenceTimeStr + `,
347351
"started_at": ` + referenceTimeStr + `,
348352
"completed_at": ` + referenceTimeStr + `,
349353
"name": "n",

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)