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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
d28a587e
Commit
d28a587e
authored
Mar 21, 2016
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos and denting
parent
3b088fc5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
doc/api/issues.md
doc/api/issues.md
+1
-1
doc/api/merge_requests.md
doc/api/merge_requests.md
+1
-2
spec/controllers/projects/issues_controller_spec.rb
spec/controllers/projects/issues_controller_spec.rb
+2
-2
No files found.
doc/api/issues.md
View file @
d28a587e
...
@@ -329,7 +329,7 @@ Example response:
...
@@ -329,7 +329,7 @@ Example response:
## Delete an issue
## Delete an issue
Only for admins and project owners. Soft deletes the issue in question.
Only for admins and project owners. Soft deletes the issue in question.
If the operation is successful, a status code
of
`200`
is returned. Any the
case you cannot
If the operation is successful, a status code
`200`
is returned. In
case you cannot
destroy this issue, or it is not present, code
`404`
is given.
destroy this issue, or it is not present, code
`404`
is given.
```
```
...
...
doc/api/merge_requests.md
View file @
d28a587e
...
@@ -383,10 +383,9 @@ If an error occurs, an error number and a message explaining the reason is retur
...
@@ -383,10 +383,9 @@ If an error occurs, an error number and a message explaining the reason is retur
## Delete a merge request
## Delete a merge request
Only for admins and project owners. Soft deletes the merge request in question.
Only for admins and project owners. Soft deletes the merge request in question.
If the operation is successful, a status code
of
`200`
is returned. Any the
case you cannot
If the operation is successful, a status code
`200`
is returned. In
case you cannot
destroy this merge request, or it is not present, code
`404`
is given.
destroy this merge request, or it is not present, code
`404`
is given.
```
```
DELETE /projects/:id/merge_requests/:merge_request_id
DELETE /projects/:id/merge_requests/:merge_request_id
```
```
...
...
spec/controllers/projects/issues_controller_spec.rb
View file @
d28a587e
...
@@ -201,7 +201,7 @@ describe Projects::IssuesController do
...
@@ -201,7 +201,7 @@ describe Projects::IssuesController do
let
(
:namespace
)
{
create
(
:namespace
,
owner:
owner
)
}
let
(
:namespace
)
{
create
(
:namespace
,
owner:
owner
)
}
let
(
:project
)
{
create
(
:project
,
namespace:
namespace
)
}
let
(
:project
)
{
create
(
:project
,
namespace:
namespace
)
}
before
{
sign_in
owner
}
before
{
sign_in
(
owner
)
}
it
"deletes the issue"
do
it
"deletes the issue"
do
delete
:destroy
,
namespace_id:
project
.
namespace
.
path
,
project_id:
project
.
path
,
id:
issue
.
iid
delete
:destroy
,
namespace_id:
project
.
namespace
.
path
,
project_id:
project
.
path
,
id:
issue
.
iid
...
...
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