Skip to content

Commit

Permalink
Add added_by and last_used fields to keys (#2718)
Browse files Browse the repository at this point in the history
Fixes: #2717.
  • Loading branch information
chapurlatn committed Mar 27, 2023
1 parent 3135011 commit 795005a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
16 changes: 16 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion github/github-stringify_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions github/users_keys.go
Expand Up @@ -19,6 +19,8 @@ type Key struct {
ReadOnly *bool `json:"read_only,omitempty"`
Verified *bool `json:"verified,omitempty"`
CreatedAt *Timestamp `json:"created_at,omitempty"`
AddedBy *string `json:"added_by,omitempty"`
LastUsed *Timestamp `json:"last_used,omitempty"`
}

func (k Key) String() string {
Expand Down

0 comments on commit 795005a

Please sign in to comment.