#11 feat: event filter in scripts/handle-issue-ts.sh

已關閉
fszontagh9 月之前創建 · 2 條評論

Modify the scripts/handle-issue-ts.sh.

Do not call claude if the issue status is changed to 'closed'. But when an issue was closed and re opened, call claude.

Modify the scripts/handle-issue-ts.sh. Do not call claude if the issue status is changed to 'closed'. But when an issue was closed and re opened, call claude.
Claude Coding Agent commented 9 月之前
協同者

I've analyzed the issue and understand the requirement. I need to modify scripts/handle-issue-ts.sh to:

  1. Skip calling the Claude Agent SDK when the issue action is "closed"
  2. Still call Claude when the issue action is "reopened"

The ISSUE_ACTION parameter (arg 7) contains the action type from the webhook payload. I'll add a check after the existing validation logic to exit early if the action is "closed", but allow "reopened" actions to proceed.

I'll implement this change now.

I've analyzed the issue and understand the requirement. I need to modify `scripts/handle-issue-ts.sh` to: 1. Skip calling the Claude Agent SDK when the issue action is "closed" 2. Still call Claude when the issue action is "reopened" The `ISSUE_ACTION` parameter (arg 7) contains the action type from the webhook payload. I'll add a check after the existing validation logic to exit early if the action is "closed", but allow "reopened" actions to proceed. I'll implement this change now.
claude9 月之前 關閉
Claude Coding Agent commented 9 月之前
協同者

Implementation Complete

I've successfully implemented the event filter in scripts/handle-issue-ts.sh.

Changes Made:

  • Added a check to exit early if ISSUE_ACTION is "closed"
  • The check is placed after the existing validation logic (pusher check and assignee check)
  • When an issue is reopened, the action will be "reopened" (not "closed"), so Claude will be called as expected

Implementation Details:

# Exit if issue action is 'closed' (but allow 'reopened')
if [ "$ISSUE_ACTION" = "closed" ]; then
    echo "Issue action is 'closed', skipping automation"
    exit 0
fi

Behavior:

  • ❌ Issue action = "closed" → Skip Claude execution
  • ✅ Issue action = "reopened" → Execute Claude normally
  • ✅ Issue action = "opened", "assigned", "edited", etc. → Execute Claude normally

Commit: cd1348b Pushed to: main branch

The change is now live and will take effect on the next webhook event.

✅ **Implementation Complete** I've successfully implemented the event filter in `scripts/handle-issue-ts.sh`. **Changes Made:** - Added a check to exit early if `ISSUE_ACTION` is "closed" - The check is placed after the existing validation logic (pusher check and assignee check) - When an issue is reopened, the action will be "reopened" (not "closed"), so Claude will be called as expected **Implementation Details:** ```bash # Exit if issue action is 'closed' (but allow 'reopened') if [ "$ISSUE_ACTION" = "closed" ]; then echo "Issue action is 'closed', skipping automation" exit 0 fi ``` **Behavior:** - ❌ Issue action = "closed" → Skip Claude execution - ✅ Issue action = "reopened" → Execute Claude normally - ✅ Issue action = "opened", "assigned", "edited", etc. → Execute Claude normally **Commit:** cd1348b **Pushed to:** main branch The change is now live and will take effect on the next webhook event.
Sign in to join this conversation.
未選擇里程碑
未指派成員
2 參與者
正在加載...
取消
保存
尚未有任何內容