Skip to content

Commit 938260a

Browse files
authored
Update and rename close-innactive-issues-without-repro.yaml to close-inactive-issues-without-repro.yaml
Extending close timeline to 672 hours / 30 days
1 parent 7d0d709 commit 938260a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/close-innactive-issues-without-repro.yaml renamed to .github/workflows/close-inactive-issues-without-repro.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Close Issues with Tag Needs Repro Link After 1 Week of Inactivity
1+
name: Close Issues with Tag Needs Repro Link After 1 Month of Inactivity
22

33
on:
44
schedule:
@@ -62,9 +62,9 @@ jobs:
6262
# Check if there has been any activity after the label was added
6363
has_activity_after_label=$(jq -c "map(select(.created_at > \"$label_added_at\")) | length" timeline.json)
6464
65-
# Check if at least 168 hours have passed since the label was added
65+
# Check if at least 30 days have passed since the label was added
6666
current_time=$(date --utc +'%Y-%m-%dT%H:%M:%SZ')
67-
is_week_old=$(dateutils.ddiff "$label_added_at" "$current_time" -f '%H:%M:%S' | awk -F: '{if ($1 >= 168) print "yes"; else print "no";}')
67+
is_week_old=$(dateutils.ddiff "$label_added_at" "$current_time" -f '%H:%M:%S' | awk -F: '{if ($1 >= 672) print "yes"; else print "no";}')
6868
6969
if [ "$is_week_old" = "yes" ] && [ "$has_activity_after_label" = "0" ]; then
7070
echo "Commenting and closing issue $issue..."

0 commit comments

Comments
 (0)