From a4b679abbf25e0a056ea29a1f98d08d339e02886 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Wed, 12 Nov 2025 15:01:45 -0700 Subject: [PATCH 1/3] fix(issue-fixer): migrate to REST for issue/comments and add ProjectsV2; remove Projects Classic mentions --- .roo/rules-issue-fixer/1_Workflow.xml | 4 +-- .roo/rules-issue-fixer/4_github_cli_usage.xml | 36 +++++++++++++++---- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/.roo/rules-issue-fixer/1_Workflow.xml b/.roo/rules-issue-fixer/1_Workflow.xml index 62a3fd7c269..c6f2b570a08 100644 --- a/.roo/rules-issue-fixer/1_Workflow.xml +++ b/.roo/rules-issue-fixer/1_Workflow.xml @@ -17,7 +17,7 @@ Then retrieve the issue: - gh issue view [issue-number] --repo [owner]/[repo] --json number,title,body,state,labels,assignees,milestone,createdAt,updatedAt,closedAt,author + gh api repos/[owner]/[repo]/issues/[issue-number] --jq '{number,title,body,state,labels,assignees,milestone,createdAt:.created_at,updatedAt:.updated_at,closedAt:.closed_at,author:.user.login}' If the command fails with an authentication error (e.g., "gh: Not authenticated" or "HTTP 401"), ask the user to authenticate: @@ -49,7 +49,7 @@ - Any decisions or changes to requirements - gh issue view [issue number] --repo [owner]/[repo] --comments + gh api repos/[owner]/[repo]/issues/[issue-number]/comments --paginate --jq '.[].body' Also check for: diff --git a/.roo/rules-issue-fixer/4_github_cli_usage.xml b/.roo/rules-issue-fixer/4_github_cli_usage.xml index e12fb06a5b4..afbe92ebc68 100644 --- a/.roo/rules-issue-fixer/4_github_cli_usage.xml +++ b/.roo/rules-issue-fixer/4_github_cli_usage.xml @@ -29,23 +29,23 @@ - Retrieve the issue details at the start + Retrieve the issue details at the start using the REST Issues API. Always use first to get the full issue content - gh issue view [issue-number] --repo [owner]/[repo] --json number,title,body,state,labels,assignees,milestone,createdAt,updatedAt,closedAt,author + gh api repos/[owner]/[repo]/issues/[issue-number] --jq '{number,title,body,state,labels,assignees,milestone,createdAt:.created_at,updatedAt:.updated_at,closedAt:.closed_at,author:.user.login}' - gh issue view 123 --repo octocat/hello-world --json number,title,body,state,labels,assignees,milestone,createdAt,updatedAt,closedAt,author + gh api repos/octocat/hello-world/issues/123 --jq '{number,title,body,state,labels,assignees,milestone,createdAt:.created_at,updatedAt:.updated_at,closedAt:.closed_at,author:.user.login}' - Get additional context and requirements from issue comments + Get additional context and requirements from issue comments. Always use after viewing issue to see full discussion - gh issue view [issue-number] --repo [owner]/[repo] --comments + gh api repos/[owner]/[repo]/issues/[issue-number]/comments --paginate - gh issue view 123 --repo octocat/hello-world --comments + gh api repos/octocat/hello-world/issues/123/comments --paginate @@ -109,6 +109,30 @@ + + + Inspect associations with GitHub Projects (new Projects experience) for a given issue + Use when project context is relevant to understanding priority, ownership, or workflow + gh api graphql -f query=' +query($owner:String!, $repo:String!, $number:Int!) { + repository(owner:$owner, name:$repo) { + issue(number:$number) { + projectsV2(first:20) { + nodes { + title + url + } + } + } + } +} +' -F owner=[owner] -F repo=[repo] -F number=[issue-number] + + This uses the projectsV2 field from the new GitHub Projects experience for issue-level project context. + + + + Create a pull request From 6d0026e78c0703ecfee542c1311b20640411bcde Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Wed, 12 Nov 2025 15:22:48 -0700 Subject: [PATCH 2/3] Update .roo/rules-issue-fixer/4_github_cli_usage.xml Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com> --- .roo/rules-issue-fixer/4_github_cli_usage.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.roo/rules-issue-fixer/4_github_cli_usage.xml b/.roo/rules-issue-fixer/4_github_cli_usage.xml index afbe92ebc68..b066f0109af 100644 --- a/.roo/rules-issue-fixer/4_github_cli_usage.xml +++ b/.roo/rules-issue-fixer/4_github_cli_usage.xml @@ -42,7 +42,7 @@ Get additional context and requirements from issue comments. Always use after viewing issue to see full discussion - gh api repos/[owner]/[repo]/issues/[issue-number]/comments --paginate + gh api repos/[owner]/[repo]/issues/[issue-number]/comments --paginate --jq '.[].body' gh api repos/octocat/hello-world/issues/123/comments --paginate From 7bb9c75f3ac1227b3616d21ce79d10ab9b47bd85 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Wed, 12 Nov 2025 15:22:56 -0700 Subject: [PATCH 3/3] Update .roo/rules-issue-fixer/4_github_cli_usage.xml Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com> --- .roo/rules-issue-fixer/4_github_cli_usage.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.roo/rules-issue-fixer/4_github_cli_usage.xml b/.roo/rules-issue-fixer/4_github_cli_usage.xml index b066f0109af..b4fa19b3cc4 100644 --- a/.roo/rules-issue-fixer/4_github_cli_usage.xml +++ b/.roo/rules-issue-fixer/4_github_cli_usage.xml @@ -45,7 +45,7 @@ gh api repos/[owner]/[repo]/issues/[issue-number]/comments --paginate --jq '.[].body' - gh api repos/octocat/hello-world/issues/123/comments --paginate + gh api repos/octocat/hello-world/issues/123/comments --paginate --jq '.[].body'