summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBennett Goble <signal@lindenlab.com>2022-11-18 07:43:29 -0800
committerBennett Goble <signal@lindenlab.com>2022-11-18 07:46:25 -0800
commitd14c67509b7a8fb0f6bde60d139b6dabe787b8ae (patch)
treebff8155fecab29c2367d58dd8cad4e909c97f945
parent55103bff6d499e16acd657e929331685357d9fb9 (diff)
Mark PRs as stale after 60 days, close them automatically if no response
after 7 days.
-rw-r--r--.github/workflows/stale.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml
new file mode 100644
index 0000000000..82a9a968b9
--- /dev/null
+++ b/.github/workflows/stale.yaml
@@ -0,0 +1,24 @@
+name: Stale PRs
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: 0 0 * * *
+
+permissions:
+ issues: write
+ pull-requests: write
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v6
+ id: stale
+ with:
+ stale-pr-message: This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 7 days
+ days-before-stale: 60
+ days-before-close: 7
+ exempt-pr-labels: blocked,must,should,keep
+ stale-pr-label: stale
+ - name: Print outputs
+ run: echo ${{ join(steps.stale.outputs.*, ',') }}