Loading...
Loading...
Compare original and translation side by side
123#123https://github.com/owner/repo/pull/123arinhub-code-reviewer~/.agents/arinhub/code-reviews/pr-code-review-my-app-123.md123#123https://github.com/owner/repo/pull/123arinhub-code-reviewer~/.agents/arinhub/code-reviews/pr-code-review-my-app-123.md#PR_NUMBER=<extracted number>#PR_NUMBER=<extracted number>gh pr view $PR_NUMBER --json number,title,body,baseRefName,headRefName,files,urlgh pr view $PR_NUMBER --json number,title,body,baseRefName,headRefName,files,urlgh api repos/{owner}/{repo}/pulls/$PR_NUMBER/comments --paginate --jq '.[] | {id, path, line, body, user: .user.login}'gh api repos/{owner}/{repo}/pulls/$PR_NUMBER/reviews --paginate --jq '.[] | {id, body, state, user: .user.login}'gh api repos/{owner}/{repo}/pulls/$PR_NUMBER/comments --paginate --jq '.[] | {id, path, line, body, user: .user.login}'gh api repos/{owner}/{repo}/pulls/$PR_NUMBER/reviews --paginate --jq '.[] | {id, body, state, user: .user.login}'arinhub-code-reviewer## Issuespathlinestart_linebodysuggestionstart_linelineline```suggestionarinhub-code-reviewer## Issuespathlinestart_linebodysuggestionstart_linelineline```suggestionpathlinepathlinebodycommentsjq . >/dev/nullpathlineside: "RIGHT"start_linestart_side: "RIGHT"linelinestart_linebody```suggestion```suggestion\n```gh api repos/{owner}/{repo}/pulls/$PR_NUMBER/reviews \
--method POST \
--input - <<'EOF'
{
"event": "APPROVE or COMMENT",
"body": "<main-review-comment>",
"comments": [
{
"path": "<file-path>",
"line": <line-number>,
"side": "RIGHT",
"body": "<thread-comment>\n\n```suggestion\n<replacement-code>\n```"
}
]
}
EOFstart_linestart_side{
"path": "<file-path>",
"start_line": <first-line>,
"line": <last-line>,
"start_side": "RIGHT",
"side": "RIGHT",
"body": "<thread-comment>\n\n```suggestion\n<replacement-code>\n```"
}```suggestion ```"side": "RIGHT"bodycomments[].bodybodycommentsjq . >/dev/nullpathlineside: "RIGHT"start_linestart_side: "RIGHT"linelinestart_linebody```suggestion```suggestion\n```gh api repos/{owner}/{repo}/pulls/$PR_NUMBER/reviews \
--method POST \
--input - <<'EOF'
{
"event": "APPROVE or COMMENT",
"body": "<main-review-comment>",
"comments": [
{
"path": "<file-path>",
"line": <line-number>,
"side": "RIGHT",
"body": "<thread-comment>\n\n```suggestion\n<replacement-code>\n```"
}
]
}
EOFstart_linestart_side{
"path": "<file-path>",
"start_line": <first-line>,
"line": <last-line>,
"start_side": "RIGHT",
"side": "RIGHT",
"body": "<thread-comment>\n\n```suggestion\n<replacement-code>\n```"
}```suggestion ```"side": "RIGHT"bodycomments[].body## Requirements Coverage## Requirements Coveragegh pr comment $PR_NUMBER --body "$(cat <<'EOF'
<coverage-content>
EOF
)"gh pr comment $PR_NUMBER --body "$(cat <<'EOF'
<coverage-content>
EOF
)"APPROVECOMMENTREQUEST_CHANGESlinestart_lineline```suggestion\n``````suggestion ```APPROVECOMMENTREQUEST_CHANGESlinestart_lineline```suggestion\n``````suggestion ```