Skip to content

Commit 3a71fa8

Browse files
Update issue-reminder.yml
1 parent 79d9c97 commit 3a71fa8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/issue-reminder.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@ jobs:
1717
- name: Checkout repository
1818
uses: actions/checkout@v2
1919

20-
- name: Authenticate GitHub CLI with ACTION_TOKEN
21-
run: gh auth login --with-token <<< ${{ secrets.GITHUB_TOKEN }}
22-
2320
- name: Get list of open issues
2421
id: get_issues
2522
run: |
2623
issues=$(gh issue list --state open --json number,updatedAt,author --limit 100)
2724
echo "issues=$issues" >> $GITHUB_ENV
2825
2926
- name: Send reminders for stale issues
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3029
run: |
3130
REMINDER_DAYS=7
3231
current_date=$(date +%s)
@@ -43,6 +42,6 @@ jobs:
4342
4443
if [ "$diff_days" -ge "$REMINDER_DAYS" ]; then
4544
echo "Sending reminder to issue #$issue_number"
46-
gh issue comment "$issue_number" --body "Hi @${issue_author}, this is a friendly reminder that your issue has been inactive for the last $REMINDER_DAYS days. Please provide an update if possible. Thank you!"
45+
gh issue comment "$issue_number" --body "Hi @${issue_author}, this is a friendly reminder that your issue has been inactive for the last $REMINDER_DAYS days. Please provide an update if possible. Thank you!" --repo $GITHUB_REPOSITORY
4746
fi
4847
done

0 commit comments

Comments
 (0)