diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 18:44:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 18:44:42 +0300 |
commit | 4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch) | |
tree | 5423a1c7516cffe36384133ade12572cf709398d /lib/api/entities/deploy_token.rb | |
parent | e570267f2f6b326480d284e0164a6464ba4081bc (diff) |
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
Diffstat (limited to 'lib/api/entities/deploy_token.rb')
-rw-r--r-- | lib/api/entities/deploy_token.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/entities/deploy_token.rb b/lib/api/entities/deploy_token.rb index 9c5bf54e299..daee104ba6b 100644 --- a/lib/api/entities/deploy_token.rb +++ b/lib/api/entities/deploy_token.rb @@ -4,7 +4,8 @@ module API module Entities class DeployToken < Grape::Entity # exposing :token is a security risk and should be avoided - expose :id, :name, :username, :expires_at, :scopes + expose :id, :name, :username, :expires_at, :scopes, :revoked + expose :expired?, as: :expired end end end |