You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convert deprecated stalebot to github action (facebook#28695)
## Summary
This repo uses [Stalebot](https://github.com/probot/stale) to manage
stale Issues and PRs. Stalebot hasn't been maintained for a couple of
years and is officially archived. The number of open Issues and PRs has
increased rapidly since early 2022. Some of this looks like issues with
Stalebot reliability where labels were not applied or close actions were
not taken even when meeting the criteria in the config.
In order to make it easier for maintainers to spend time on current
Issues and PRs, let's upgrade to the Github Stale Action. For now this
PR applies the same config to the new action but we can iterate on it as
needed. The goal is to clean up abandoned and no-longer-relevant
submissions, not to close Issues that describe active bugs or feedback.
## How did you test this change?
Added `debug-only: 'true'` to this PR so we can run the action and
review the logs before allowing the action to run on schedule. We may
see a large amount of label changes and close actions on the first run
as the action clears out previously ignored stale submissions.
# Configuration for stale action workflow - https://github.com/actions/stale
2
+
name: 'Manage stale issues and PRs'
3
+
on:
4
+
schedule:
5
+
# Run daily at 2AM
6
+
- cron: '0 2 * * *'
7
+
8
+
jobs:
9
+
stale:
10
+
runs-on: ubuntu-latest
11
+
steps:
12
+
- uses: actions/stale@v9
13
+
with:
14
+
# --- Issues & PRs ---
15
+
# Number of days of inactivity before an issue or PR becomes stale
16
+
days-before-stale: 90
17
+
# Number of days of inactivity before a stale issue or PR is closed
18
+
days-before-close: 7
19
+
# Tmp dry run setup to test new config
20
+
debug-only: 'true'
21
+
22
+
# --- Issues ---
23
+
stale-issue-label: "Resolution: Stale"
24
+
# Comment to post when marking an issue as stale
25
+
stale-issue-message: >
26
+
This issue has been automatically marked as stale.
27
+
**If this issue is still affecting you, please leave any comment** (for example, "bump"), and we'll keep it open.
28
+
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!
29
+
# Comment to post when closing a stale issue
30
+
close-issue-message: >
31
+
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!
32
+
# Issues with these labels will never be considered stale
# Comment to post when marking a pull request as stale
38
+
stale-pr-message: >
39
+
This pull request has been automatically marked as stale.
40
+
**If this pull request is still relevant, please leave any comment** (for example, "bump"), and we'll keep it open.
41
+
We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.
42
+
# Comment to post when closing a stale pull request
43
+
close-pr-message: >
44
+
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!
45
+
# PRs with these labels will never be considered stale
0 commit comments