#809 able to set issue state to closed when create
This commit is contained in:
parent
f473895c41
commit
bf5faf76eb
2 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue