This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 961
Cannot use UpdateIssue to remove all issue assignees #427
Labels
Comments
Thanks for the report @natemara! Did you also try to give it a |
Hi @natemara! Did you have a chance to test this, and so is this still an issue? |
Specifying |
Then I think the only way to solve this is by making this a |
The same problem applys to labels. You can't remove them by setting it to an emtpy slice, but if you use []string{""} it works. |
svanharmelen
added a commit
that referenced
this issue
Nov 25, 2021
PR #1294 is a nasty breaking change, but it does fix this issue... |
svanharmelen
added a commit
that referenced
this issue
Jan 4, 2022
pdecat
pushed a commit
to pdecat/go-gitlab
that referenced
this issue
Jan 23, 2022
gravis
pushed a commit
to gravis/go-gitlab
that referenced
this issue
Sep 1, 2022
gravis
pushed a commit
to gravis/go-gitlab
that referenced
this issue
Sep 1, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Since
UpdateIssueOptions
definesAssigneeIDs
as a[]int
, and marks it asomitempty
, it is omitted from the JSON request if an empty array is passed into it. The Gitlab API docs describe the field as follows:Based on the current definition of
UpdateIssueOptions
, it is impossible to unassign all assignees. You cannot remove theomitempty
item, or every call toUpdateIssue
will remove all issue assignees. if you want to support this, I think there needs to be a separate method.The text was updated successfully, but these errors were encountered: