We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83608f7 commit 507b9ecCopy full SHA for 507b9ec
deploy_tokens.go
@@ -36,6 +36,8 @@ type DeployToken struct {
36
Name string `json:"name"`
37
Username string `json:"username"`
38
ExpiresAt *time.Time `json:"expires_at"`
39
+ Expired bool `json:"expired"`
40
+ Revoked bool `json:"revoked"`
41
Token string `json:"token,omitempty"`
42
Scopes []string `json:"scopes"`
43
}
deploy_tokens_test.go
@@ -39,7 +39,9 @@ func TestListAllDeployTokens(t *testing.T) {
"scopes": [
"read_repository",
"read_registry"
- ]
+ ],
+ "expired": true,
44
+ "revoked": true
45
46
]
47
`)
@@ -62,6 +64,8 @@ func TestListAllDeployTokens(t *testing.T) {
62
64
63
65
"read_registry",
66
},
67
+ Expired: true,
68
+ Revoked: true,
69
70
71
0 commit comments