Skip to content

Commit cd62c0b

Browse files
authored
updating repro link action
1 parent 0125fd7 commit cd62c0b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/close-inactive-issues-without-repro.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525
LABEL_NAME: 'Status: Needs a reproduction link'
2626
LABEL_NAME_URL: 'Status%3A%20Needs%20a%20reproduction%20link'
27-
CUSTOM_MESSAGE: 'In order to investigate further we need a link to a StackBlitz project reproducing the issue. /n /n As this issue has been inactive for 7 days without a reproduction link, it will be temporarily closed to allow prioritization of other issues. /n /n If this needs additional investigation, please share a reproduction link and re-open the issue! Thanks for your diligence in helping us continuously improve the StackBlitz platform.'
27+
CUSTOM_MESSAGE: 'In order to investigate further we need a link to a StackBlitz project reproducing the issue. /n /n As this issue has been inactive for 1 day without a reproduction link, it will be closed to allow prioritization of other issues. /n /n If this needs additional investigation, please share a reproduction link by opening a new issue. Thanks for your diligence in helping us continuously improve the StackBlitz platform.'
2828
run: |
2929
set -e
3030
set -x
@@ -62,11 +62,12 @@ 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 30 days have passed since the label was added
65+
# Check if at least 1 day has 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 >= 672) print "yes"; else print "no";}')
67+
is_day_old=$(dateutils.ddiff "$label_added_at" "$current_time" -f '%H:%M:%S' | awk -F: '{if ($1 >= 24) print "yes"; else print "no";}')
6868
69-
if [ "$is_week_old" = "yes" ] && [ "$has_activity_after_label" = "0" ]; then
69+
70+
if [ "$is_day_old" = "yes" ] && [ "$has_activity_after_label" = "0" ]; then
7071
echo "Commenting and closing issue $issue..."
7172
# Comment on the issue
7273
COMMENT_RESPONSE=$(curl -sS -w "%{http_code}" -X POST -H "Authorization: token $GITHUB_TOKEN" \

0 commit comments

Comments
 (0)