- Notifications
You must be signed in to change notification settings - Fork3.2k
Correct lower-case issue state#1567
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull request overview
This PR fixes an issue where thelist_issues tool fails when thestate parameter is provided in lowercase (e.g., "open" or "closed"). The fix addsstrings.ToUpper() to normalize the state value before casting it to thegithubv4.IssueState enum type, which expects uppercase values like "OPEN" and "CLOSED" as defined in the schema.
Key Changes
- Added uppercase conversion for the
stateparameter in theListIssuesfunction to handle lowercase input gracefully
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
7199f89 to8f1eb1dComparecfd7ef9 intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Upper-case
state,orderByanddirectionparameters because they're often passed as lc which results in an error.