Skip to content

Commit b20acb4

Browse files
committed
fix(pre-push): clarify category usage in findings response format
1 parent 1e3a256 commit b20acb4

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

hook/pre-push

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,17 @@ STATIC
323323
printf '\n## Changed files\n%s\n' "$CHANGED_FILES_LIST"
324324
printf '\n## Focus areas\n%s\n' "$FOCUS_AREAS"
325325
printf '\n## Categories\n'
326-
printf 'Classify every finding into exactly one of these categories:\n'
327-
printf '%s\n' "- Blocking categories (will prevent the push): $BLOCKING_CATS"
328-
printf '%s\n' "- Warning categories (informational only): $WARNING_CATS"
326+
printf 'The category field in each FINDING must contain ONLY one of these exact strings.\n'
327+
printf 'Do not paraphrase, describe, or group them — use the exact string as written.\n\n'
328+
printf 'Blocking categories (severity: blocking — will prevent the push): %s\n' "$BLOCKING_CATS"
329+
printf 'Warning categories (severity: warning — will NOT prevent the push): %s\n' "$WARNING_CATS"
330+
printf '\nExample of correct usage: "category: security"\n'
331+
printf 'Example of INCORRECT usage: "category: Blocking categories (will prevent the push)"\n'
329332
printf '\n## Response format\n'
330333
printf 'You MUST respond using ONLY this exact format. No prose outside of it.\n\n'
331334
printf 'For each finding:\n\n'
332335
printf 'FINDING\n'
333-
printf 'category: <one of the categories above>\n'
336+
printf 'category: <exact category string from the list above>\n'
334337
printf 'severity: <blocking|warning>\n'
335338
printf 'file: <filename>\n'
336339
printf 'line: <line number or range, or "N/A">\n'

0 commit comments

Comments
 (0)