File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010#
1111# 비활성 판단 기준:
1212# updated_at이 아닌 마지막 커밋/리뷰/코멘트 시각 중 최신값을 사용.
13- # 라벨 부착/제거는 이 값들에 영향을 주지 않으므로 피드백 루프가 발생하지 않음 .
13+ # Bot 타입 사용자의 코멘트/리뷰는 활동 판단에서 제외하여 피드백 루프를 방지함 .
1414#
1515# 흐름:
1616# Schedule (매 2시간) 또는 수동 트리거
@@ -115,13 +115,13 @@ jobs:
115115 fi
116116
117117 # 마지막 의미 있는 활동 시각 조회 (커밋, 리뷰, 코멘트)
118- # 라벨 변경은 이 값들에 영향을 주지 않으므로 피드백 루프가 발생하지 않음
118+ # Bot 사용자의 코멘트/리뷰는 제외하여 리마인드 코멘트로 인한 피드백 루프 방지
119119 LAST_COMMIT=$(gh api "repos/${REPO_FULL}/pulls/${PR_NUMBER}/commits" \
120120 --jq 'last | .commit.committer.date // empty' 2>/dev/null || echo "")
121121 LAST_REVIEW=$(gh api "repos/${REPO_FULL}/pulls/${PR_NUMBER}/reviews" \
122- --jq 'last | .submitted_at // empty' 2>/dev/null || echo "")
122+ --jq '[.[] | select(.user.type != "Bot")] | last | .submitted_at // empty' 2>/dev/null || echo "")
123123 LAST_COMMENT=$(gh api "repos/${REPO_FULL}/issues/${PR_NUMBER}/comments" \
124- --jq 'last | .created_at // empty' 2>/dev/null || echo "")
124+ --jq '[.[] | select(.user.type != "Bot")] | last | .created_at // empty' 2>/dev/null || echo "")
125125
126126 LAST_ACTIVITY=$(printf '%s\n' "$LAST_COMMIT" "$LAST_REVIEW" "$LAST_COMMENT" \
127127 | grep -v '^$' | sort -r | head -1)
You can’t perform that action at this time.
0 commit comments