summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Daily <kdaily@amazon.com>2022-04-20 11:48:42 -0700
committerKenneth Daily <kdaily@amazon.com>2022-04-20 11:48:42 -0700
commitec120e79dd774b096d512d3aeedf782e822ca5b7 (patch)
treec38ba27d56e951bff94afa6e72803efc7a1d2f07
parent3dd26f0a14ae7acf8df1befedfb40ccdc3b0fc2f (diff)
downloadboto-ec120e79dd774b096d512d3aeedf782e822ca5b7.tar.gz
Update to check PRs for staleness too.
-rw-r--r--.github/workflows/stale_bot.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/stale_bot.yml b/.github/workflows/stale_bot.yml
new file mode 100644
index 00000000..adf66b72
--- /dev/null
+++ b/.github/workflows/stale_bot.yml
@@ -0,0 +1,32 @@
+name: "Close stale issues and pull requests"
+
+# Controls when the action will run.
+on:
+ schedule:
+ - cron: "0 * * * *"
+
+jobs:
+ issue-cleanup:
+ runs-on: ubuntu-latest
+ name: Stale issue job
+ steps:
+ - uses: aws-actions/stale-issue-cleanup@v4
+ with:
+ issue-types: issues,pull_requests
+ ancient-issue-message: Greetings! This issue hasn't been active in longer
+ than one year. Since this repository is no longer maintained, community comments can continue to be made but they will not be reviewed by AWS. In the absence of further activity, this issue will close soon.
+ ancient-pr-message: Greetings! This pull request hasn't been active in longer
+ than one year. Since this repository is no longer maintained, community comments can continue to be made but they will not be reviewed by AWS. In the absence of further activity, this pull request will close soon.
+
+ # Don't set closed-for-staleness label to skip closing very old issues
+ # regardless of label
+ closed-for-staleness-label: closed-for-staleness
+
+ # Issue timing
+ days-before-ancient: 365
+ days-before-close: 7
+
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ loglevel: DEBUG
+ # Set dry-run to true to not perform label or close actions.
+ dry-run: true