summaryrefslogtreecommitdiff
path: root/lib/api/entities/protected_ref_access.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-28 18:26:46 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-28 18:26:46 +0000
commit5509e479900ee537980a126287c20327c41a61d6 (patch)
tree8272f06bd58b1518eca38975f95656ffc5497bd2 /lib/api/entities/protected_ref_access.rb
parente0529f76a36026dc4bd51fbec1e5c52e7f3866e1 (diff)
downloadgitlab-ce-5509e479900ee537980a126287c20327c41a61d6.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/entities/protected_ref_access.rb')
-rw-r--r--lib/api/entities/protected_ref_access.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/entities/protected_ref_access.rb b/lib/api/entities/protected_ref_access.rb
index ba28c724448..28e0ef540d5 100644
--- a/lib/api/entities/protected_ref_access.rb
+++ b/lib/api/entities/protected_ref_access.rb
@@ -9,6 +9,8 @@ module API
documentation: { type: 'string', example: 'Maintainers' } do |protected_ref_access|
protected_ref_access.humanize
end
+ expose :deploy_key_id, documentation: { type: 'integer', example: 1 },
+ if: ->(access) { access.has_attribute?(:deploy_key_id) && access.deploy_key_id }
end
end
end