Closed Hossain2024 closed 3 months ago
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs
. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
@Hossain2024 you're mixing up a request and a response there. In your first code snippet, you've quoted a comment that includes "pass one or more label names to replace the set of labels", implying a POST or a PUT request, and linked IssuesRequestBuilder.cs, which is what is sent to the API.
In the second, you've shown a list of issues from the response, what is returned from the API.
A list of strings is sent in the request to associate an issue with a given label (for which the string is the label name). A list of objects representing a label is returned in the response, for which not only the string label name is returned, but also the color, the description, the default, and various other fields.
What happened?
I am encountering an issue while trying to get Label objects for an Issue in GitHub.
https://github.dev/octokit/dotnet-sdk/blob/main/src/GitHub/Repos/Item/Item/Issues/IssuesRequestBuilder.cs
The GitHub.Models.Issue class defines the label property as a
List<string>
. Based on the API response it should be a ``ListThe API URL:
https://api.github.com/repos/microsoft/kiota/issues/5037
In this API response the issues list is a
List<Label>
Versions
0.0.23
Code of Conduct