mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Updates to the API for archived repos (#27149)
This commit is contained in:
@@ -187,6 +187,8 @@ func CreateIssueDependency(ctx *context.APIContext) {
|
||||
// "$ref": "#/responses/Issue"
|
||||
// "404":
|
||||
// description: the issue does not exist
|
||||
// "423":
|
||||
// "$ref": "#/responses/repoArchivedError"
|
||||
|
||||
// We want to make <:index> depend on <Form>, i.e. <:index> is the target
|
||||
target := getParamsIssue(ctx)
|
||||
@@ -246,6 +248,8 @@ func RemoveIssueDependency(ctx *context.APIContext) {
|
||||
// "$ref": "#/responses/Issue"
|
||||
// "404":
|
||||
// "$ref": "#/responses/notFound"
|
||||
// "423":
|
||||
// "$ref": "#/responses/repoArchivedError"
|
||||
|
||||
// We want to make <:index> depend on <Form>, i.e. <:index> is the target
|
||||
target := getParamsIssue(ctx)
|
||||
|
Reference in New Issue
Block a user