@yeongjaeyou/claude-code-config 0.18.4 → 0.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -105,14 +105,21 @@ check_unresolved_threads() {
|
|
|
105
105
|
}
|
|
106
106
|
}')
|
|
107
107
|
|
|
108
|
-
# Filter: unresolved + coderabbit
|
|
109
|
-
|
|
108
|
+
# Filter: unresolved + coderabbit
|
|
109
|
+
ALL_UNRESOLVED=$(echo "$RESULT" | jq '[.data.repository.pullRequest.reviewThreads.nodes[] |
|
|
110
110
|
select(.isResolved == false) |
|
|
111
|
-
select(.comments.nodes[0].author.login | ascii_downcase | contains("coderabbit"))
|
|
112
|
-
|
|
111
|
+
select(.comments.nodes[0].author.login | ascii_downcase | contains("coderabbit"))]')
|
|
112
|
+
|
|
113
|
+
# Exclude nitpick and minor for auto-fix
|
|
114
|
+
UNRESOLVED=$(echo "$ALL_UNRESOLVED" | jq '[.[] |
|
|
115
|
+
select(.comments.nodes[0].body |
|
|
116
|
+
(contains("[nitpick]") or contains("nitpick") or contains("[minor]")) | not)]')
|
|
113
117
|
|
|
114
118
|
UNRESOLVED_COUNT=$(echo "$UNRESOLVED" | jq 'length')
|
|
115
119
|
|
|
120
|
+
# Count skipped issues (nitpick + minor)
|
|
121
|
+
SKIPPED_COUNT=$(($(echo "$ALL_UNRESOLVED" | jq 'length') - UNRESOLVED_COUNT))
|
|
122
|
+
|
|
116
123
|
# Extract comments for fixing
|
|
117
124
|
COMMENTS=$(echo "$UNRESOLVED" | jq -r '.[] |
|
|
118
125
|
"### File: \(.path):\(.line)\n\n\(.comments.nodes[0].body)\n\n---\n"')
|
|
@@ -157,7 +164,11 @@ while [ $ITERATION -le $MAX_ITERATIONS ]; do
|
|
|
157
164
|
check_unresolved_threads
|
|
158
165
|
|
|
159
166
|
if [ "$UNRESOLVED_COUNT" -eq 0 ]; then
|
|
160
|
-
|
|
167
|
+
if [ "$SKIPPED_COUNT" -gt 0 ]; then
|
|
168
|
+
echo "REVIEW_COMPLETE: $SKIPPED_COUNT minor/nitpick issue(s) skipped - manual review recommended"
|
|
169
|
+
else
|
|
170
|
+
echo "REVIEW_COMPLETE: all comments resolved"
|
|
171
|
+
fi
|
|
161
172
|
exit 0
|
|
162
173
|
fi
|
|
163
174
|
|
|
@@ -183,6 +194,7 @@ End with exactly one of:
|
|
|
183
194
|
| Output | Meaning |
|
|
184
195
|
|--------|---------|
|
|
185
196
|
| `REVIEW_COMPLETE: all comments resolved` | Success |
|
|
197
|
+
| `REVIEW_COMPLETE: N minor/nitpick issue(s) skipped - manual review recommended` | Only minor/nitpick issues remain |
|
|
186
198
|
| `REVIEW_COMPLETE: no changes needed` | No fixes required |
|
|
187
199
|
| `REVIEW_INCOMPLETE: max iterations reached, N comments remaining` | Hit limit |
|
|
188
200
|
| `REVIEW_SKIPPED: checks not completing within timeout` | Timeout |
|