mirror of
https://gitee.com/gitea/gitea
synced 2026-01-04 22:55:47 +08:00
Updates to the API for archived repos (#27149)
This commit is contained in:
@@ -631,6 +631,8 @@ func CreateIssue(ctx *context.APIContext) {
|
||||
// "$ref": "#/responses/error"
|
||||
// "422":
|
||||
// "$ref": "#/responses/validationError"
|
||||
// "423":
|
||||
// "$ref": "#/responses/repoArchivedError"
|
||||
form := web.GetForm(ctx).(*api.CreateIssueOption)
|
||||
var deadlineUnix timeutil.TimeStamp
|
||||
if form.Deadline != nil && ctx.Repo.CanWrite(unit.TypeIssues) {
|
||||
|
||||
Reference in New Issue
Block a user