-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue.ToUpdate forgets Labels #762
Comments
Heh, was waiting to see when I'd be back in this code. Removing one label isn't a scenario I'd thought about when I was in #718. Perhaps a method cc @thedillonb |
Given my code the new overload wouldn't matter but I imagine it could be helpful to other people. It's enough for me to know this intended behaviour. Am curious why we treat Labels different and leave as (null / no change) but don't do the same for the others such as Body? (unless that behaviour has changed as well). |
The milestone and labels are handled slightly differently to the other fields in the API on PATCH: https://developer.github.com/v3/issues/#edit-an-issue I know I can make this clearer in our API, this feedback is great ✨ |
Yeah I just discovered the Thanks |
Unsure whether this is a bug or intended but
Issue.ToUpdate
doesn't copy over the Labels toIssueUpdate
. There is a test that asserts the default value to be null which I assume means no change. However that property then behaves differently to the other properties ofIssueUpdate
.I came across this when I wanted to remove a Label, this then entrails copying over the Labels and then removing the one I don't want.
Can submit a PR if wanted.
The text was updated successfully, but these errors were encountered: