Fix github.label.description type to nullish #1031
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
GitHub's label.description can be null in some cases. While it's marked as "Optional" in the user interface, in API responses it could be null. Since it's described as optional, it might also be undefined, so treating it as nullish would be appropriate.
The fact that it becomes null is probably due to historical reasons, but I don't know the specific details.
Server Details
Motivation and Context
When I executed the search_issue API in my Claude Desktop, the converter encountered an error because the label's description was null.
How Has This Been Tested?
I cloned the repository and set up a server locally to verify the issue.
However, unfortunately, label.description does not become null when you create a new label. It's possible that labels created in the past or through some other route may have null values.
Breaking Changes
Nothing
Types of changes
Checklist
Additional context