From bf5faf76eb0fde7e4dabcae84d0c153f6e72db48 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 11 May 2016 12:19:26 -0400 Subject: [PATCH] #809 able to set issue state to closed when create --- glide.lock | 2 +- routers/api/v1/repo/issue.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/glide.lock b/glide.lock index 8fc547e522..88cd9a7c36 100644 --- a/glide.lock +++ b/glide.lock @@ -43,7 +43,7 @@ imports: - name: github.com/gogits/git-module version: 76e8cce6c7ef3ba1cf75752261c721ebf14cd129 - name: github.com/gogits/go-gogs-client - version: 1da1834d366c2c0b0b4495d34089082f4e38aed5 + version: 01270dfe22e92d99ce9402fedba4530ad8810100 - name: github.com/issue9/identicon version: f8c0d2ce04db79c663b1da33d3a9f62be753ee88 - name: github.com/kardianos/minwinsvc 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() {