README.md: - GitHub-friendly documentation - Installation instructions - Plugin overview with commands review plugin: - /review:security - Security-focused review - /review:pr - PR review - hooks.json - Post PR create suggestion - scripts/post-pr-create.sh verify plugin: - /verify:ready - Quick readiness check - /verify:tests - Test verification - hooks.json - Pre-push warning - scripts/pre-push-check.sh qa plugin: - /qa:check - Report only, no fixes - /qa:lint - Lint with fix option - hooks.json - QA output filtering ci plugin: - /ci:status - CI status display - /ci:run - Trigger workflows - /ci:fix - Analyse and fix failures - hooks.json - Post-push CI hint - scripts/post-push-ci.sh Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
540 B
Bash
Executable file
23 lines
540 B
Bash
Executable file
#!/bin/bash
|
|
# Show CI status hint after push
|
|
|
|
read -r input
|
|
EXIT_CODE=$(echo "$input" | jq -r '.tool_response.exit_code // 0')
|
|
|
|
if [ "$EXIT_CODE" = "0" ]; then
|
|
# Check if repo has workflows
|
|
if [ -d ".github/workflows" ]; then
|
|
cat << 'EOF'
|
|
{
|
|
"hookSpecificOutput": {
|
|
"hookEventName": "PostToolUse",
|
|
"additionalContext": "Push successful. CI workflows will run shortly.\n\nRun `/ci:status` to check progress or `gh run watch` to follow live."
|
|
}
|
|
}
|
|
EOF
|
|
else
|
|
echo "$input"
|
|
fi
|
|
else
|
|
echo "$input"
|
|
fi
|