Compare commits
1 Commits
3a0983c28a
...
663e44a82a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
663e44a82a |
@@ -341,6 +341,8 @@ 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/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"
|
||||
- IMPORTANT: After listing reviews, READ the review comments and incorporate feedback
|
||||
- Check for review state: "APPROVED" means ready to merge, "COMMENT" means feedback to address
|
||||
- Merge PR (only with approval): tea pr merge --repo $owner/$repo $number --style merge
|
||||
- MERGING requires approval first! Check for: approval in reviews, OR "lgtm"/"approved" in comments
|
||||
- If no approval, ask reviewer to approve first before merging
|
||||
|
||||
Reference in New Issue
Block a user