fix: use correct Gitea API endpoint for PR comments (issues not pulls)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user