Skip to content

Commit 6e801ae

Browse files
committed
Fix lint
1 parent e3d899a commit 6e801ae

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

modules/structs/hook.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -506,18 +506,20 @@ func (p *WorkflowDispatchPayload) JSONPayload() ([]byte, error) {
506506
// CommitStatusPayload represents a payload information of commit status event.
507507
type CommitStatusPayload struct {
508508
// TODO: add Branches
509-
Commit *PayloadCommit `json:"commit"`
510-
Context string `json:"context"`
511-
CreatedAt time.Time `json:"created_at"`
512-
Description string `json:"description"`
513-
ID int64 `json:"id"`
509+
Commit *PayloadCommit `json:"commit"`
510+
Context string `json:"context"`
511+
// swagger:strfmt date-time
512+
CreatedAt time.Time `json:"created_at"`
513+
Description string `json:"description"`
514+
ID int64 `json:"id"`
514515
// Name string `json:"name"`
515516
Repo *Repository `json:"repository"`
516517
Sender *User `json:"sender"`
517518
SHA string `json:"sha"`
518519
State string `json:"state"`
519520
TargetURL string `json:"target_url"`
520-
UpdatedAt *time.Time `json:"updated_at"`
521+
// swagger:strfmt date-time
522+
UpdatedAt *time.Time `json:"updated_at"`
521523
}
522524

523525
// JSONPayload implements Payload

0 commit comments

Comments
 (0)