-
Notifications
You must be signed in to change notification settings - Fork 66.8k
41 lines (35 loc) · 1.71 KB
/
stale.yml
File metadata and controls
41 lines (35 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Stale check for stalled pull requests in the docs-internal repository
# **What it does**: Identifies pull requests that have been inactive for 30 days.
# **Why we have it**: We want to avoid pull requests that are stalled and not being reviewed.
# **Who does it impact**: Everyone that works in the internal repository.
on:
schedule:
- cron: '20 16 * * 1' # Run each Monday at 16:20 UTC / 8:20 PST
permissions:
contents: read
pull-requests: write
jobs:
stale:
if: github.repository == 'github/docs-internal'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: "It looks as if this pull request has been inactive for 30 days. We want to check in with you to see if you plan to continue working on it. If you do, please add a comment to let us know. If we don't hear from you, we will close this pull request after 14 days."
days-before-stale: 30
days-before-close: 14
stale-pr-label: 'stale'
exempt-pr-labels: 'never-stale'
close-pr-label: 'Closed as inactive'
operations-per-run: 150
staled-issues-prs: true # report PRs that were commented on as stale in the output
closed-issues-prs: true # report PRs that were closed in the output
- name: Check out repo
if: ${{ failure() }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/slack-alert
if: ${{ failure() }}
with:
slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}