Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2e8b4664
Commit
2e8b4664
authored
Apr 17, 2020
by
Etienne Baqué
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added changelog file
parent
f1857590
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app/services/concerns/deploy_token_methods.rb
app/services/concerns/deploy_token_methods.rb
+1
-1
changelogs/unreleased/214511-deploy-token-no-scope-error.yml
changelogs/unreleased/214511-deploy-token-no-scope-error.yml
+5
-0
No files found.
app/services/concerns/deploy_token_methods.rb
View file @
2e8b4664
...
@@ -19,7 +19,7 @@ module DeployTokenMethods
...
@@ -19,7 +19,7 @@ module DeployTokenMethods
if
deploy_token
.
persisted?
if
deploy_token
.
persisted?
success
(
deploy_token:
deploy_token
,
http_status: :created
)
success
(
deploy_token:
deploy_token
,
http_status: :created
)
else
else
error
(
deploy_token
.
errors
.
full_messages
.
to_sentence
,
:bad_request
).
merge
(
deploy_token:
deploy_token
)
error
(
deploy_token
.
errors
.
full_messages
.
to_sentence
,
:bad_request
,
pass_back:
{
deploy_token:
deploy_token
}
)
end
end
end
end
end
end
changelogs/unreleased/214511-deploy-token-no-scope-error.yml
0 → 100644
View file @
2e8b4664
---
title
:
Fix Deploy Token creation when no scope selected
merge_request
:
29614
author
:
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment