Skip to content

Commit 45b5e3c

Browse files
simonkey007gmlewis
authored andcommitted
Add missing CreatedAt field in users_keys class (#1256)
Fixes #1255.
1 parent da8b749 commit 45b5e3c

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

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-stringify_test.go

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

github/users_keys.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ import (
1212

1313
// Key represents a public SSH key used to authenticate a user or deploy script.
1414
type Key struct {
15-
ID *int64 `json:"id,omitempty"`
16-
Key *string `json:"key,omitempty"`
17-
URL *string `json:"url,omitempty"`
18-
Title *string `json:"title,omitempty"`
19-
ReadOnly *bool `json:"read_only,omitempty"`
15+
ID *int64 `json:"id,omitempty"`
16+
Key *string `json:"key,omitempty"`
17+
URL *string `json:"url,omitempty"`
18+
Title *string `json:"title,omitempty"`
19+
ReadOnly *bool `json:"read_only,omitempty"`
20+
CreatedAt *Timestamp `json:"created_at,omitempty"`
2021
}
2122

2223
func (k Key) String() string {

0 commit comments

Comments
 (0)