Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit dfb96f2

Browse files
Added permission to the workflow to avoid the error 'Resource not accessible'.
1 parent 6b21151 commit dfb96f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/heretto-reminder.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ jobs:
4949
const reminderLabel = 'reminder sent';
5050
const daysThreshold = 1; // Number of days before sending reminder. Adjust as needed.
5151
52+
if (!labels) { // Check if labels is undefined or null
53+
return { sendReminder: diffInDays >= daysThreshold }; // send reminder if the time threshold is passed, even without labels.
54+
}
5255
if (labels.includes(reminderLabel)) {
5356
return { sendReminder: false };
5457
}

0 commit comments

Comments
 (0)