File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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)
153153echo " "
154154echo " === 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' )
You can’t perform that action at this time.
0 commit comments