Skip to content

Commit

Permalink
[chore] Bump rate at which we process issues (open-telemetry#22825)
Browse files Browse the repository at this point in the history
* Bump rate at which we process issues

* Add rate_limit check before and after

* try gh cli
  • Loading branch information
TylerHelmuth committed May 26, 2023
1 parent 6640ad7 commit 6eb548d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/close-stale.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: "Close stale issues and pull requests"
on:
workflow_dispatch:
schedule:
- cron: "12 5 * * *" # arbitrary time not to DDOS GitHub
- cron: "12 2-5 * * *" # arbitrary time not to DDOS GitHub

jobs:
stale:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Check rate_limit before
run: gh api /rate_limit
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -20,4 +25,7 @@ jobs:
days-before-issue-close: 60
exempt-issue-labels: 'never stale'
ascending: true
operations-per-run: 400
- name: Check rate_limit after
run: gh api /rate_limit

0 comments on commit 6eb548d

Please sign in to comment.