2020-12-15 19:58:43 +00:00
|
|
|
name: Mark stale pull requests
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
|
2021-04-23 22:18:50 +00:00
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
|
2020-12-15 19:58:43 +00:00
|
|
|
jobs:
|
|
|
|
stale:
|
2022-02-07 19:40:40 +00:00
|
|
|
if: github.repository_owner == 'python'
|
2020-12-15 19:58:43 +00:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-15 10:44:29 +00:00
|
|
|
timeout-minutes: 10
|
2020-12-15 19:58:43 +00:00
|
|
|
|
|
|
|
steps:
|
2022-04-11 16:34:17 +00:00
|
|
|
- name: "Check PRs"
|
2022-05-01 20:53:15 +00:00
|
|
|
uses: actions/stale@v5
|
2020-12-15 19:58:43 +00:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
2020-12-16 02:36:33 +00:00
|
|
|
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity.'
|
2020-12-15 19:58:43 +00:00
|
|
|
stale-pr-label: 'stale'
|
2022-05-06 07:18:22 +00:00
|
|
|
days-before-issue-stale: -1
|
|
|
|
days-before-pr-stale: 30
|
2020-12-15 19:58:43 +00:00
|
|
|
days-before-close: -1
|
2022-02-18 19:28:12 +00:00
|
|
|
ascending: true
|
|
|
|
operations-per-run: 120
|