main
yml 55 lines 2.81 KB
Raw
1 # Configuration for stale action workflow - https://github.com/actions/stale
2 name: (Shared) Manage stale issues and PRs
3 on:
4 schedule:
5 # Run hourly
6 - cron: '0 * * * *'
7 workflow_dispatch:
8
9 permissions:
10 # https://github.com/actions/stale/tree/v9/?tab=readme-ov-file#recommended-permissions
11 issues: write
12 pull-requests: write
13
14 env:
15 TZ: /usr/share/zoneinfo/America/Los_Angeles
16
17 jobs:
18 stale:
19 runs-on: ubuntu-latest
20 steps:
21 - uses: actions/stale@v9
22 with:
23 # --- Issues & PRs ---
24 # Number of days of inactivity before an issue or PR becomes stale
25 days-before-stale: 90
26 # Number of days of inactivity before a stale issue or PR is closed
27 days-before-close: 7
28 # API calls per run
29 operations-per-run: 100
30
31 # --- Issues ---
32 stale-issue-label: "Resolution: Stale"
33 # Comment to post when marking an issue as stale
34 stale-issue-message: >
35 This issue has been automatically marked as stale.
36 **If this issue is still affecting you, please leave any comment** (for example, "bump"), and we'll keep it open.
37 We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
38 # Comment to post when closing a stale issue
39 close-issue-message: >
40 Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
41 # Issues with these labels will never be considered stale
42 exempt-issue-labels: "Partner,React Core Team,Resolution: Backlog,Type: Bug,Type: Discussion,Type: Needs Investigation,Type: Regression,Type: Feature Request,Type: Enhancement"
43
44 # --- PRs ---
45 stale-pr-label: "Resolution: Stale"
46 # Comment to post when marking a pull request as stale
47 stale-pr-message: >
48 This pull request has been automatically marked as stale.
49 **If this pull request is still relevant, please leave any comment** (for example, "bump"), and we'll keep it open.
50 We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.
51 # Comment to post when closing a stale pull request
52 close-pr-message: >
53 Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!
54 # PRs with these labels will never be considered stale
55 exempt-pr-labels: "Partner,React Core Team,Resolution: Backlog,Type: Bug,Type: Discussion,Type: Needs Investigation,Type: Regression,Type: Feature Request,Type: Enhancement"