diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-19 12:08:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-19 12:08:58 +0300 |
commit | 93e4425400aa60f54f1bbccb26ef6581503952f3 (patch) | |
tree | 60ec09e58a7ba58d3d795ddc12803d40471b758d /app/assets/javascripts/api.js | |
parent | 731d58455c61ad6400924171eb182f2c2ab2f0a4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/api.js')
-rw-r--r-- | app/assets/javascripts/api.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js index 0156be057e9..63b75cdb734 100644 --- a/app/assets/javascripts/api.js +++ b/app/assets/javascripts/api.js @@ -30,6 +30,7 @@ const Api = { projectProtectedBranchesPath: '/api/:version/projects/:id/protected_branches', projectSearchPath: '/api/:version/projects/:id/search', projectMilestonesPath: '/api/:version/projects/:id/milestones', + projectIssuePath: '/api/:version/projects/:id/issues/:issue_iid', mergeRequestsPath: '/api/:version/merge_requests', groupLabelsPath: '/groups/:namespace_path/-/labels', issuableTemplatePath: '/:namespace_path/:project_path/templates/:type/:key', @@ -328,6 +329,14 @@ const Api = { }); }, + addProjectIssueAsTodo(projectId, issueIid) { + const url = Api.buildUrl(Api.projectIssuePath) + .replace(':id', encodeURIComponent(projectId)) + .replace(':issue_iid', encodeURIComponent(issueIid)); + + return axios.post(`${url}/todo`); + }, + mergeRequests(params = {}) { const url = Api.buildUrl(Api.mergeRequestsPath); |