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