summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/issue_comment_attachment.go
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-09-22 01:43:29 +0200
committerGitHub <noreply@github.com>2023-09-21 23:43:29 +0000
commit28f9b313bab420be8f42e546015312904311adba (patch)
treef3f09c6cef7bf96c7f390ba8e858cf80b0445581 /routers/api/v1/repo/issue_comment_attachment.go
parent7520cd678c3ef037db702296192d8664b6f02a54 (diff)
downloadgitea-28f9b313bab420be8f42e546015312904311adba.tar.gz
gitea-28f9b313bab420be8f42e546015312904311adba.zip
Updates to the API for archived repos (#27149)
Diffstat (limited to 'routers/api/v1/repo/issue_comment_attachment.go')
-rw-r--r--routers/api/v1/repo/issue_comment_attachment.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/routers/api/v1/repo/issue_comment_attachment.go b/routers/api/v1/repo/issue_comment_attachment.go
index c30e8278db..63ed51c72d 100644
--- a/routers/api/v1/repo/issue_comment_attachment.go
+++ b/routers/api/v1/repo/issue_comment_attachment.go
@@ -156,6 +156,8 @@ func CreateIssueCommentAttachment(ctx *context.APIContext) {
// "$ref": "#/responses/error"
// "404":
// "$ref": "#/responses/error"
+ // "423":
+ // "$ref": "#/responses/repoArchivedError"
// Check if comment exists and load comment
comment := getIssueCommentSafe(ctx)
@@ -245,7 +247,8 @@ func EditIssueCommentAttachment(ctx *context.APIContext) {
// "$ref": "#/responses/Attachment"
// "404":
// "$ref": "#/responses/error"
-
+ // "423":
+ // "$ref": "#/responses/repoArchivedError"
attach := getIssueCommentAttachmentSafeWrite(ctx)
if attach == nil {
return
@@ -297,7 +300,8 @@ func DeleteIssueCommentAttachment(ctx *context.APIContext) {
// "$ref": "#/responses/empty"
// "404":
// "$ref": "#/responses/error"
-
+ // "423":
+ // "$ref": "#/responses/repoArchivedError"
attach := getIssueCommentAttachmentSafeWrite(ctx)
if attach == nil {
return