1
0
Fork 0
forked from forgejo/forgejo

Merge remote-tracking branch 'forgejo/forgejo-dependency' into wip-forgejo

Conflicts:
	.forgejo/workflows/testing.yml
	trivial conflict
This commit is contained in:
Earl Warren 2024-02-09 19:00:54 +01:00
commit 7cbf05fafb
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
10 changed files with 288 additions and 37 deletions

View file

@ -1174,11 +1174,7 @@ func GetIssueTemplates(ctx *context.APIContext) {
// "$ref": "#/responses/IssueTemplates"
// "404":
// "$ref": "#/responses/notFound"
ret, err := issue.GetTemplatesFromDefaultBranch(ctx.Repo.Repository, ctx.Repo.GitRepo)
if err != nil {
ctx.Error(http.StatusInternalServerError, "GetTemplatesFromDefaultBranch", err)
return
}
ret, _ := issue.GetTemplatesFromDefaultBranch(ctx.Repo.Repository, ctx.Repo.GitRepo)
ctx.JSON(http.StatusOK, ret)
}