forgejo/tests/integration/fixtures
BtbN 9828aca733 feat: github compatability for removing label from issue API (#8831)
On GitHub, `DELETE /repos/{owner}/{repo}/issues/{index}/labels/{id}` takes the label name, not id:

https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#remove-a-label-from-an-issue

This breaks workflows and actions that interact with labels and delete them.
It also makes the API quite difficult to use, always having to query the ID first before deleting a label from an issue, potentially with two API calls, because it could be a repo or org label.

For backwards compatibility, if no label with the given name is found, and the name converts to an int without error, it'll still be looked up by ID.

The API on GitHub also does not return 204, but 200, with the label it just removed from the issue as content. So this is returned when `application/vnd.github+json` is set in the `Accept` request header.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8831
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: BtbN <btbn@btbn.de>
Co-committed-by: BtbN <btbn@btbn.de>
2025-08-30 03:29:23 +02:00
..
TestActionVariablesModification
TestAdminDeleteUser
TestAdminModerationViewReports feat: Admin interface for abuse reports (#7905) 2025-07-23 00:20:15 +02:00
TestAPIRemoveIssueLabelByName feat: github compatability for removing label from issue API (#8831) 2025-08-30 03:29:23 +02:00
TestBlockActions
TestBlockedNotifications
TestCommitRefComment
TestFeed fix: prevent user-entered text with | characters from being truncated in activity feed (#8844) 2025-08-10 19:48:46 +02:00
TestForcePushCommitStatus feat: show CI status on force-pushes (#8655) 2025-08-13 03:29:36 +02:00
TestGetContentHistory
TestPullCombinedReviewRequest
TestPullRequestReplyMail
TestRunnerModification
TestSystemCommentRoles
TestXSSReviewDismissed