File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
33on :
44 schedule :
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..."
You can’t perform that action at this time.
0 commit comments