BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
9dfbfbb2
Commit
9dfbfbb2
authored
Nov 24, 2016
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't convert data which already is the target type
parent
a44c9b9e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
commit_statuses.rb
lib/api/commit_statuses.rb
+1
-1
commits.rb
lib/api/commits.rb
+1
-1
groups.rb
lib/api/groups.rb
+1
-1
variables.rb
lib/api/variables.rb
+1
-1
No files found.
lib/api/commit_statuses.rb
View file @
9dfbfbb2
...
...
@@ -77,7 +77,7 @@ module API
)
begin
case
params
[
:state
]
.
to_s
case
params
[
:state
]
when
'pending'
status
.
enqueue!
when
'running'
...
...
lib/api/commits.rb
View file @
9dfbfbb2
...
...
@@ -48,7 +48,7 @@ module API
requires
:id
,
type:
Integer
,
desc:
'The project ID'
requires
:branch_name
,
type:
String
,
desc:
'The name of branch'
requires
:commit_message
,
type:
String
,
desc:
'Commit message'
requires
:actions
,
type:
Array
,
desc:
'Actions to perform in commit'
requires
:actions
,
type:
Array
[
Hash
]
,
desc:
'Actions to perform in commit'
optional
:author_email
,
type:
String
,
desc:
'Author email for commit'
optional
:author_name
,
type:
String
,
desc:
'Author name for commit'
end
...
...
lib/api/groups.rb
View file @
9dfbfbb2
...
...
@@ -33,7 +33,7 @@ module API
groups
=
groups
.
search
(
params
[
:search
])
if
params
[
:search
].
present?
groups
=
groups
.
where
.
not
(
id:
params
[
:skip_groups
])
if
params
[
:skip_groups
].
present?
groups
=
groups
.
reorder
(
params
[
:order_by
]
=>
params
[
:sort
]
.
to_sym
)
groups
=
groups
.
reorder
(
params
[
:order_by
]
=>
params
[
:sort
])
present
paginate
(
groups
),
with:
Entities
::
Group
end
...
...
lib/api/variables.rb
View file @
9dfbfbb2
...
...
@@ -30,7 +30,7 @@ module API
end
get
':id/variables/:key'
do
key
=
params
[
:key
]
variable
=
user_project
.
variables
.
find_by
(
key:
key
.
to_s
)
variable
=
user_project
.
variables
.
find_by
(
key:
key
)
return
not_found!
(
'Variable'
)
unless
variable
...
...
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