From 90c65bea7857e57739712f5df2d1a45b4380db47 Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Tue, 7 Apr 2026 04:21:45 +0000 Subject: [PATCH] fix: use correct Gitea API endpoint for PR comments (issues not pulls) --- skills/kugetsu/scripts/kugetsu-session.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skills/kugetsu/scripts/kugetsu-session.sh b/skills/kugetsu/scripts/kugetsu-session.sh index b03cea9..03ca4ae 100755 --- a/skills/kugetsu/scripts/kugetsu-session.sh +++ b/skills/kugetsu/scripts/kugetsu-session.sh @@ -276,8 +276,8 @@ build_dev_agent_message() { You are continuing work on $issue_ref. A PR likely already exists. IMPORTANT - Review workflow: -1. First, check the PR and its comments: curl -s "https://$instance/api/v1/repos/$owner/$repo/pulls?state=open" -H "Authorization: Bearer \$GITEA_TOKEN" | grep -i "$number" -2. Get PR comments: curl -s "https://$instance/api/v1/repos/$owner/$repo/pulls/$number/comments" -H "Authorization: Bearer \$GITEA_TOKEN" +1. First, check if PR exists: curl -s "https://$instance/api/v1/repos/$owner/$repo/pulls?state=open" -H "Authorization: Bearer \$GITEA_TOKEN" | grep -i "$number" +2. Get PR comments: curl -s "https://$instance/api/v1/repos/$owner/$repo/issues/$number/comments" -H "Authorization: Bearer \$GITEA_TOKEN" 3. Get PR reviews: curl -s "https://$instance/api/v1/repos/$owner/$repo/pulls/$number/reviews" -H "Authorization: Bearer \$GITEA_TOKEN" You may need to: @@ -313,7 +313,7 @@ Workflow: Tools for PR interaction: - Post issue/PR comment: curl -X POST "https://$instance/api/v1/repos/$owner/$repo/issues/$number/comments" -H "Authorization: Bearer \$GITEA_TOKEN" -H "Content-Type: application/json" -d '{"body":"Your comment"}' -- List PR comments: curl -s "https://$instance/api/v1/repos/$owner/$repo/pulls/$number/comments" -H "Authorization: Bearer \$GITEA_TOKEN" +- List PR comments: curl -s "https://$instance/api/v1/repos/$owner/$repo/issues/$number/comments" -H "Authorization: Bearer \$GITEA_TOKEN" - List PR reviews: curl -s "https://$instance/api/v1/repos/$owner/$repo/pulls/$number/reviews" -H "Authorization: Bearer \$GITEA_TOKEN" Work directory: $worktree_path