Skip to content

Commit

Permalink
Add rate limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
arunchndr authored Apr 3, 2024
1 parent 73b2b6c commit 8291ba1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ jobs:
COMMENT="This issue has been marked as stale after 14 days of inactivity. $TAGGED_OWNERS, could you please take a look?"
COMMENT=$(echo $COMMENT | sed 's/ @/@/g') # Remove extra space before '@'
gh issue comment $issue_number --body "$COMMENT"
# Add a delay to stay within API rate limits
sleep 1
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 8291ba1

Please sign in to comment.