Skip to content

Conversation

@almaleksia
Copy link
Contributor

@almaleksia almaleksia commented Dec 10, 2025

Upper-case state, orderBy and direction parameters because they're often passed as lc which results in an error.

@almaleksia almaleksia requested a review from a team as a code owner December 10, 2025 13:57
Copilot AI review requested due to automatic review settings December 10, 2025 13:57
Copy link
Contributor

Copilot AI left a 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 the list_issues tool fails when the state parameter is provided in lowercase (e.g., "open" or "closed"). The fix adds strings.ToUpper() to normalize the state value before casting it to the githubv4.IssueState enum type, which expects uppercase values like "OPEN" and "CLOSED" as defined in the schema.

Key Changes

  • Added uppercase conversion for the state parameter in the ListIssues function to handle lowercase input gracefully

@almaleksia almaleksia force-pushed the almaleksia/correct-lower-case-issue-state branch from 7199f89 to 8f1eb1d Compare December 10, 2025 14:16
@almaleksia almaleksia merged commit cfd7ef9 into main Dec 10, 2025
16 checks passed
@almaleksia almaleksia deleted the almaleksia/correct-lower-case-issue-state branch December 10, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants