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

닫힘
fszontagh9 달 전을 오픈 · 2개의 코멘트
Szontágh Ferenc 코멘트됨, 9 달 전

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 코멘트됨, 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.
claude 9 달 전가 Close
Claude Coding Agent 코멘트됨, 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.
로그인하여 이 대화에 참여
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.