mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 16:58:37 +00:00
#809 able to set issue state to closed when create
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user