Skip to content

Commit afbade4

Browse files
committed
Update code for new code style rules
1 parent dff7576 commit afbade4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/structs/repo_actions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ type ActionWorkflowRun struct {
104104
HeadRepository *Repository `json:"head_repository,omitempty"`
105105
Conclusion string `json:"conclusion,omitempty"`
106106
// swagger:strfmt date-time
107-
StartedAt time.Time `json:"started_at,omitempty"`
107+
StartedAt time.Time `json:"started_at"`
108108
// swagger:strfmt date-time
109-
CompletedAt time.Time `json:"completed_at,omitempty"`
109+
CompletedAt time.Time `json:"completed_at"`
110110
}
111111

112112
// ActionWorkflowRunsResponse returns ActionWorkflowRuns

tests/integration/repo_webhook_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ jobs:
11361136
assert.Equal(t, "workflow_run", webhookData.triggeredEvent)
11371137
// 1x push + 5x workflow_run requested chain
11381138
assert.Len(t, webhookData.payloads, 6)
1139-
for i := 0; i < 6; i++ {
1139+
for i := range 6 {
11401140
assert.Equal(t, "requested", webhookData.payloads[i].Action)
11411141
assert.Equal(t, "queued", webhookData.payloads[i].WorkflowRun.Status)
11421142
assert.Equal(t, repo1.DefaultBranch, webhookData.payloads[i].WorkflowRun.HeadBranch)

0 commit comments

Comments
 (0)