Skip to content

Commit d6d7042

Browse files
committed
Fix lint
1 parent 6945114 commit d6d7042

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
@@ -491,18 +491,20 @@ func (p *PackagePayload) JSONPayload() ([]byte, error) {
491491
// CommitStatusPayload represents a payload information of commit status event.
492492
type CommitStatusPayload struct {
493493
// TODO: add Branches
494-
Commit *PayloadCommit `json:"commit"`
495-
Context string `json:"context"`
496-
CreatedAt time.Time `json:"created_at"`
497-
Description string `json:"description"`
498-
ID int64 `json:"id"`
494+
Commit *PayloadCommit `json:"commit"`
495+
Context string `json:"context"`
496+
// swagger:strfmt date-time
497+
CreatedAt time.Time `json:"created_at"`
498+
Description string `json:"description"`
499+
ID int64 `json:"id"`
499500
// Name string `json:"name"`
500501
Repo *Repository `json:"repository"`
501502
Sender *User `json:"sender"`
502503
SHA string `json:"sha"`
503504
State string `json:"state"`
504505
TargetURL string `json:"target_url"`
505-
UpdatedAt *time.Time `json:"updated_at"`
506+
// swagger:strfmt date-time
507+
UpdatedAt *time.Time `json:"updated_at"`
506508
}
507509

508510
// JSONPayload FIXME

0 commit comments

Comments
 (0)