-
Notifications
You must be signed in to change notification settings - Fork 112
feat: Add list_project_issues tool to fetch all issues in a project #39
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
Merged
Prashant-Surya
merged 3 commits into
makeplane:canary
from
KurodaKayn:list-project-issues
Oct 30, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
🧩 Analysis chain
Consider more flexible typing for nullable fields.
The
IssuesResponsetype definition hardcodes several fields asnull(lines 8, 9, 18). If the Plane API can return non-null values forgrouped_by,sub_grouped_by, orextra_statsin different contexts (e.g., when grouping is applied), the current typing will cause runtime type mismatches.Consider using union types for these fields if they can have values:
type IssuesResponse = { - grouped_by: null; - sub_grouped_by: null; + grouped_by: string | null; + sub_grouped_by: string | null; total_count: number; next_cursor: string; prev_cursor: string; next_page_results: boolean; prev_page_results: boolean; count: number; total_pages: number; total_results: number; - extra_stats: null; + extra_stats: Record<string, any> | null; results: Issue[]; };Please verify the Plane API documentation to confirm whether these fields can have non-null values.
🌐 Web query:
💡 Result:
Do you mean Plane (plane.so) API? I can look up the official docs and list the exact permitted values — want me to fetch that now?
Length of output: 2088
Length of output: 9275
Length of output: 48
💡 Result:
The List Issues response includes top-level keys grouped_by and sub_grouped_by. Type: string | null — they contain the field name used to group results (or null when not grouped). Example (from Plane dummy response): "grouped_by": null, "sub_grouped_by": null. [1][2]
Sources:
Update field types to match Plane API schema.
The
IssuesResponsetype (lines 8, 9, 18) has types that are too narrow and don't match the documented Plane API response schema:grouped_byandsub_grouped_byshould bestring | nullper Plane API docs—they contain the grouping field name when grouping is applied, ornullwhen not groupedextra_statsshould beRecord<string, any> | nullper API documentation (shown as{}in responses, notnull)The same issue exists in
src/tools/projects.tswith the identicalProjectsResponsetype definition.Update both files:
type IssuesResponse = { - grouped_by: null; - sub_grouped_by: null; + grouped_by: string | null; + sub_grouped_by: string | null; total_count: number; next_cursor: string; prev_cursor: string; next_page_results: boolean; prev_page_results: boolean; count: number; total_pages: number; total_results: number; - extra_stats: null; + extra_stats: Record<string, any> | null; results: Issue[]; };📝 Committable suggestion
🤖 Prompt for AI Agents