aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-05-11 12:19:26 -0400
committerUnknwon <u@gogs.io>2016-05-11 12:19:26 -0400
commitbf5faf76eb0fde7e4dabcae84d0c153f6e72db48 (patch)
tree086291f3e3fe084d49ce9534c2ee46a9ac2aabc4 /routers/api
parentf473895c41797d29bf3a145fa3d36d4045aade41 (diff)
downloadgitea-bf5faf76eb0fde7e4dabcae84d0c153f6e72db48.tar.gz
gitea-bf5faf76eb0fde7e4dabcae84d0c153f6e72db48.zip
#809 able to set issue state to closed when create
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/repo/issue.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go
index bdef1297d1..8c9336ba9c 100644
--- a/routers/api/v1/repo/issue.go
+++ b/routers/api/v1/repo/issue.go
@@ -57,6 +57,7 @@ func CreateIssue(ctx *context.APIContext, form api.CreateIssueOption) {
PosterID: ctx.User.Id,
Poster: ctx.User,
Content: form.Body,
+ IsClosed: form.Closed,
}
if ctx.Repo.IsWriter() {