You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are operating in a GitHub Actions runner performing automated code review. The gh CLI is available and authenticated via GH_TOKEN. You may comment on pull requests.
- PR Head SHA: ${{ github.event.pull_request.head.sha }}
47
+
- PR Base SHA: ${{ github.event.pull_request.base.sha }}
48
+
- Blocking Review: ${{ env.BLOCKING_REVIEW }}
49
+
50
+
Objectives:
51
+
1) Re-check existing review comments and reply resolved when addressed.
52
+
2) Review the current PR diff and flag only clear, high-severity issues.
53
+
3) Leave very short inline comments (1-2 sentences) on changed lines only and a brief summary at the end.
54
+
55
+
Procedure:
56
+
- Get existing comments: gh pr view --json comments
57
+
- Get diff: gh pr diff
58
+
- Get changed files with patches to compute inline positions: gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files --paginate --jq '.[] | {filename,patch}'
59
+
- Compute exact inline anchors for each issue (file path + diff position). Comments MUST be placed inline on the changed line in the diff, not as top-level comments.
60
+
- Detect prior top-level "no issues" style comments authored by this bot (match bodies like: "✅ no issues", "No issues found", "LGTM").
61
+
- If CURRENT run finds issues and any prior "no issues" comments exist:
- If there are NO issues to report and an existing top-level comment indicating "no issues" already exists (e.g., "✅ no issues", "No issues found", "LGTM"), do NOT submit another comment. Skip submission to avoid redundancy.
87
+
- If there are NO issues to report and NO prior "no issues" comment exists, submit one brief summary comment noting no issues.
88
+
- If there ARE issues to report and a prior "no issues" comment exists, ensure that prior comment is deleted/minimized/marked as superseded before submitting the new review.
89
+
- If there ARE issues to report, submit ONE review containing ONLY inline comments plus an optional concise summary body. Use the GitHub Reviews API to ensure comments are inline:
90
+
- Build a JSON array of comments like: [{ "path": "<file>", "position": <diff_position>, "body": "..." }]
cursor-agent --force --model "$MODEL" --output-format=text --print 'You are operating in a GitHub Actions runner performing automated code review. The gh CLI is available and authenticated via GH_TOKEN. You may comment on pull requests.
- PR Head SHA: ${{ github.event.pull_request.head.sha }}
47
-
- PR Base SHA: ${{ github.event.pull_request.base.sha }}
48
-
- Blocking Review: ${{ env.BLOCKING_REVIEW }}
49
-
50
-
Objectives:
51
-
1) Re-check existing review comments and reply resolved when addressed.
52
-
2) Review the current PR diff and flag only clear, high-severity issues.
53
-
3) Leave very short inline comments (1-2 sentences) on changed lines only and a brief summary at the end.
54
-
55
-
Procedure:
56
-
- Get existing comments: gh pr view --json comments
57
-
- Get diff: gh pr diff
58
-
- Get changed files with patches to compute inline positions: gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files --paginate --jq '.[] | {filename,patch}'
59
-
- Compute exact inline anchors for each issue (file path + diff position). Comments MUST be placed inline on the changed line in the diff, not as top-level comments.
60
-
- Detect prior top-level "no issues" style comments authored by this bot (match bodies like: "✅ no issues", "No issues found", "LGTM").
61
-
- If CURRENT run finds issues and any prior "no issues" comments exist:
- If there are NO issues to report and an existing top-level comment indicating "no issues" already exists (e.g., "✅ no issues", "No issues found", "LGTM"), do NOT submit another comment. Skip submission to avoid redundancy.
87
-
- If there are NO issues to report and NO prior "no issues" comment exists, submit one brief summary comment noting no issues.
88
-
- If there ARE issues to report and a prior "no issues" comment exists, ensure that prior comment is deleted/minimized/marked as superseded before submitting the new review.
89
-
- If there ARE issues to report, submit ONE review containing ONLY inline comments plus an optional concise summary body. Use the GitHub Reviews API to ensure comments are inline:
90
-
- Build a JSON array of comments like: [{ "path": "<file>", "position": <diff_position>, "body": "..." }]
0 commit comments