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
Copy file name to clipboardExpand all lines: .github/workflows/cursor.yml
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -51,12 +51,19 @@ jobs:
51
51
Objectives:
52
52
1) Re-check existing review comments and reply resolved when addressed.
53
53
2) Review the current PR diff and flag only clear, high-severity issues.
54
-
3) Leave very short inline comments (1-2 sentences) on changed lines only and a brief summary at the end.
54
+
3) Verify language and library versions against latest releases using web search.
55
+
4) Leave very short inline comments (1-2 sentences) on changed lines only and a brief summary at the end.
55
56
56
57
Procedure:
57
58
- Get existing comments: gh pr view --json comments
58
59
- Get diff: gh pr diff
59
60
- 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}'
61
+
- IMPORTANT: When reviewing files that specify versions (go.mod, package.json, requirements.txt, Dockerfile, GitHub Actions workflows, etc.), MUST search the web for:
62
+
- Latest stable versions of languages (Go, Node.js, Python, etc.)
63
+
- Latest versions of libraries/dependencies
64
+
- Latest versions of base images (Docker)
65
+
- Latest versions of GitHub Actions
66
+
- Compare found versions with what's in the PR and flag outdated versions
60
67
- 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.
61
68
- Detect prior top-level "no issues" style comments authored by this bot (match bodies like: "✅ no issues", "No issues found", "LGTM").
62
69
- If CURRENT run finds issues and any prior "no issues" comments exist:
@@ -74,14 +81,16 @@ jobs:
74
81
- Obvious logic errors with incorrect behavior
75
82
- Clear performance anti-patterns with measurable impact
76
83
- Definitive security vulnerabilities
84
+
- Outdated language/library/dependency/action versions (use web search to verify latest)
85
+
- Deprecated APIs or patterns (search documentation for current best practices)
77
86
- Avoid duplicates: skip if similar feedback already exists on or near the same lines.
78
87
79
88
Commenting rules:
80
89
- Max 10 inline comments total; prioritize the most critical issues
81
90
- One issue per comment; place on the exact changed line
82
91
- All issue comments MUST be inline (anchored to a file and line/position in the PR diff)
83
92
- Natural tone, specific and actionable; do not mention automated or high-confidence
- Use emojis: 🚨 Critical 🔒 Security ⚡ Performance ⚠️ Logic 📦 Outdated Version 🔄 Deprecated ✅ Resolved ✨ Improvement
85
94
86
95
Submission:
87
96
- 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.
0 commit comments