diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index fadc3ad76..f7c2d715b 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -56,7 +56,7 @@ "name": "utils", "source": "./plugins/utils", "description": "A generic utilities plugin serving as a catch-all for various helper commands", - "version": "0.0.4" + "version": "0.0.5" }, { "name": "olm", diff --git a/docs/data.json b/docs/data.json index d7411d60b..88333a0a6 100644 --- a/docs/data.json +++ b/docs/data.json @@ -562,7 +562,7 @@ "hooks": [], "name": "utils", "skills": [], - "version": "0.0.4" + "version": "0.0.5" }, { "commands": [ diff --git a/plugins/utils/.claude-plugin/plugin.json b/plugins/utils/.claude-plugin/plugin.json index 4c35a4001..8f9a10fcc 100644 --- a/plugins/utils/.claude-plugin/plugin.json +++ b/plugins/utils/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "utils", "description": "A generic utilities plugin serving as a catch-all for various helper commands and agents", - "version": "0.0.4", + "version": "0.0.5", "author": { "name": "github.com/openshift-eng" } diff --git a/plugins/utils/commands/address-reviews.md b/plugins/utils/commands/address-reviews.md index 2655e6b8a..38f0801a8 100644 --- a/plugins/utils/commands/address-reviews.md +++ b/plugins/utils/commands/address-reviews.md @@ -194,12 +194,18 @@ Show user: Before posting ANY reply, verify you haven't already responded: ```bash -python3 plugins/utils/scripts/check_replied.py --type +CHECK_REPLIED="${CLAUDE_PLUGIN_ROOT}/scripts/check_replied.py" +if [ ! -f "$CHECK_REPLIED" ]; then + CHECK_REPLIED=$(find ~/.claude/plugins -type f -path "*/utils/scripts/check_replied.py" 2>/dev/null | sort | head -1) +fi +if [ -z "$CHECK_REPLIED" ] || [ ! -f "$CHECK_REPLIED" ]; then echo "ERROR: check_replied.py not found" >&2; exit 2; fi +python3 "$CHECK_REPLIED" --type ``` Where `` is one of: `issue_comment`, `review_thread`, or `review_comment` **If the script returns exit code 1**: Skip that comment - you've already replied. +**If the script returns exit code 2**: The check failed - do NOT post a reply. Investigate and fix the issue before proceeding. ### Response Rules