1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 09:07:19 +00:00

Updates to the API for archived repos (#27149)

This commit is contained in:
JakobDev
2023-09-22 01:43:29 +02:00
committed by GitHub
parent 7520cd678c
commit 28f9b313ba
22 changed files with 249 additions and 34 deletions

View File

@ -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) {