Skip to content

Commit 9146204

Browse files
committed
<= instead of <
1 parent e479861 commit 9146204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/process-stale-discussions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ MARKER="<!-- stale-discussion-warning -->"
152152
# 4. The discussion hasn't been updated since the warning (or updates are also old)
153153
echo ""
154154
echo "=== Discussions to close - warned ${WARNING_DAYS}+ days ago with no activity ==="
155-
cat discussions.json | jq -r --arg warningCutoff "$CLOSE_CUTOFF" --arg marker "$MARKER" --arg botLogin "$BOT_LOGIN" '.data.repository.discussions.nodes[] | select(.closed == false) | . as $discussion | ((.comments.nodes // []) | map(select(.body | contains($marker)) | select(.author.login == $botLogin)) | last) as $warningComment | select($warningComment != null) | select($warningComment.createdAt < $warningCutoff) | select($discussion.updatedAt <= $warningComment.createdAt) | @json' | while IFS= read -r discussion; do
155+
cat discussions.json | jq -r --arg warningCutoff "$CLOSE_CUTOFF" --arg marker "$MARKER" --arg botLogin "$BOT_LOGIN" '.data.repository.discussions.nodes[] | select(.closed == false) | . as $discussion | ((.comments.nodes // []) | map(select(.body | contains($marker)) | select(.author.login == $botLogin)) | last) as $warningComment | select($warningComment != null) | select($warningComment.createdAt <= $warningCutoff) | select($discussion.updatedAt <= $warningComment.createdAt) | @json' | while IFS= read -r discussion; do
156156
if [ -n "$discussion" ]; then
157157
DISCUSSION_ID=$(echo "$discussion" | jq -r '.id')
158158
DISCUSSION_NUMBER=$(echo "$discussion" | jq -r '.number')

0 commit comments

Comments
 (0)