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
51b94860
Commit
51b94860
authored
May 23, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed conflicts in api.js
parent
15dae8c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
34 deletions
+37
-34
app/assets/javascripts/api.js
app/assets/javascripts/api.js
+37
-34
No files found.
app/assets/javascripts/api.js
View file @
51b94860
...
...
@@ -24,12 +24,9 @@ const Api = {
commitPath
:
'
/api/:version/projects/:id/repository/commits
'
,
branchSinglePath
:
'
/api/:version/projects/:id/repository/branches/:branch
'
,
createBranchPath
:
'
/api/:version/projects/:id/repository/branches
'
,
<<<<<<<
HEAD
geoNodesPath
:
'
/api/:version/geo_nodes
'
,
=======
pipelinesPath
:
'
/api/:version/projects/:id/pipelines
'
,
pipelineJobsPath
:
'
/api/:version/projects/:id/pipelines/:pipeline_id/jobs
'
,
>>>>>>>
upstream
/
master
geoNodesPath
:
'
/api/:version/geo_nodes
'
,
group
(
groupId
,
callback
)
{
const
url
=
Api
.
buildUrl
(
Api
.
groupPath
).
replace
(
'
:id
'
,
groupId
);
...
...
@@ -229,35 +226,6 @@ const Api = {
});
},
<<<<<<<
HEAD
approverUsers
(
search
,
options
,
callback
=
$
.
noop
)
{
const
url
=
Api
.
buildUrl
(
'
/autocomplete/users.json
'
);
return
axios
.
get
(
url
,
{
params
:
Object
.
assign
({
search
,
per_page
:
20
,
},
options
),
}).
then
(({
data
})
=>
{
callback
(
data
);
return
data
;
});
},
ldap_groups
(
query
,
provider
,
callback
)
{
const
url
=
Api
.
buildUrl
(
this
.
ldapGroupsPath
).
replace
(
'
:provider
'
,
provider
);
return
axios
.
get
(
url
,
{
params
:
{
search
:
query
,
per_page
:
20
,
active
:
true
,
},
}).
then
(({
data
})
=>
{
callback
(
data
);
return
data
;
});
=======
pipelines
(
projectPath
,
params
=
{})
{
const
url
=
Api
.
buildUrl
(
this
.
pipelinesPath
).
replace
(
'
:id
'
,
encodeURIComponent
(
projectPath
));
...
...
@@ -270,7 +238,42 @@ const Api = {
.
replace
(
'
:pipeline_id
'
,
pipelineId
);
return
axios
.
get
(
url
,
{
params
});
>>>>>>>
upstream
/
master
},
approverUsers
(
search
,
options
,
callback
=
$
.
noop
)
{
const
url
=
Api
.
buildUrl
(
'
/autocomplete/users.json
'
);
return
axios
.
get
(
url
,
{
params
:
Object
.
assign
(
{
search
,
per_page
:
20
,
},
options
,
),
})
.
then
(({
data
})
=>
{
callback
(
data
);
return
data
;
});
},
ldap_groups
(
query
,
provider
,
callback
)
{
const
url
=
Api
.
buildUrl
(
this
.
ldapGroupsPath
).
replace
(
'
:provider
'
,
provider
);
return
axios
.
get
(
url
,
{
params
:
{
search
:
query
,
per_page
:
20
,
active
:
true
,
},
})
.
then
(({
data
})
=>
{
callback
(
data
);
return
data
;
});
},
buildUrl
(
url
)
{
...
...
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