chore: use stale action (#12192)

This commit is contained in:
Nikolay Vitkov 2024-04-02 15:12:07 +02:00 committed by GitHub
parent 08bc8542ea
commit 86fbbe84e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 22 deletions

22
.github/stale.yml vendored
View File

@ -1,22 +0,0 @@
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
We are closing this issue. If the issue still persists in the latest version of
Puppeteer, please reopen the issue and update the description. We will try our
best to accommodate it!
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 30
# Issues with these labels will never be considered stale
exemptLabels:
- confirmed
- feature
# Comment to post when marking an issue as stale.
markComment: >
We're marking this issue as unconfirmed because it has not had recent activity and
we weren't able to confirm it yet. It will be closed if no further activity occurs
within the next 30 days.
# Only mark issues.
only: issues
# Label to use when marking an issue as stale
staleLabel: unconfirmed

31
.github/workflows/stale.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
workflow_dispatch:
# Declare default permissions as read only.
permissions: read-all
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
# Issue settings
stale-issue-message: >
We're marking this issue as unconfirmed because it has not had recent activity and
we weren't able to confirm it yet. It will be closed if no further activity occurs
within the next 30 days.
close-issue-message: >
We are closing this issue. If the issue still persists in the latest version of
Puppeteer, please reopen the issue and update the description. We will try our
best to accommodate it!
stale-issue-label: 'unconfirmed'
exempt-issue-labels: 'confirmed,feature'
# PR settings
days-before-pr-close: -1