mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 20:32:11 +00:00
parent
9a938dc298
commit
51578d6418
5 changed files with 48 additions and 17 deletions
|
@ -61,7 +61,7 @@ func ListIssueLabels(ctx *context.APIContext) {
|
|||
return
|
||||
}
|
||||
|
||||
ctx.JSON(http.StatusOK, convert.ToLabelList(issue.Labels))
|
||||
ctx.JSON(http.StatusOK, convert.ToLabelList(issue.Labels, ctx.Repo.Repository, ctx.Repo.Owner))
|
||||
}
|
||||
|
||||
// AddIssueLabels add labels for an issue
|
||||
|
@ -117,7 +117,7 @@ func AddIssueLabels(ctx *context.APIContext) {
|
|||
return
|
||||
}
|
||||
|
||||
ctx.JSON(http.StatusOK, convert.ToLabelList(labels))
|
||||
ctx.JSON(http.StatusOK, convert.ToLabelList(labels, ctx.Repo.Repository, ctx.Repo.Owner))
|
||||
}
|
||||
|
||||
// DeleteIssueLabel delete a label for an issue
|
||||
|
@ -243,7 +243,7 @@ func ReplaceIssueLabels(ctx *context.APIContext) {
|
|||
return
|
||||
}
|
||||
|
||||
ctx.JSON(http.StatusOK, convert.ToLabelList(labels))
|
||||
ctx.JSON(http.StatusOK, convert.ToLabelList(labels, ctx.Repo.Repository, ctx.Repo.Owner))
|
||||
}
|
||||
|
||||
// ClearIssueLabels delete all the labels for an issue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue