Skip to content

Commit 30be191

Browse files
pahudmrgrain
authored andcommitted
chore: add close-stale-issues workflow (#849)
Adding `close-stale-issues` workflow just as [the one](https://github.com/aws/aws-cdk/blob/main/.github/workflows/close-stale-issues.yml) from aws/aws-cdk repo. All configuration remains the same. Just changed the `repo name`. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license --------- Co-authored-by: Momo Kornher <[email protected]>
1 parent 1c4d691 commit 30be191

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "Close Stale Issues"
2+
3+
# Controls when the action will run.
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 */4 * * *"
8+
9+
jobs:
10+
cleanup:
11+
# this workflow will always fail in forks; bail if this isn't running in the upstream
12+
if: github.repository == 'aws/aws-cdk-cli'
13+
permissions:
14+
issues: write
15+
contents: read
16+
pull-requests: write
17+
runs-on: ubuntu-latest
18+
name: Stale issue job
19+
steps:
20+
- uses: aws-actions/stale-issue-cleanup@v7
21+
with:
22+
# Setting messages to an empty string will cause the automation to skip
23+
# that category
24+
ancient-issue-message: This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
25+
stale-issue-message: This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
26+
stale-pr-message: This PR has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
27+
28+
# These labels are required
29+
stale-issue-label: closing-soon
30+
exempt-issue-labels: no-autoclose
31+
stale-pr-label: closing-soon
32+
exempt-pr-labels: no-autoclose
33+
response-requested-label: response-requested
34+
35+
# Don't set closed-for-staleness label to skip closing very old issues
36+
# regardless of label
37+
closed-for-staleness-label: closed-for-staleness
38+
39+
# Issue timing
40+
days-before-stale: 2
41+
days-before-close: 5
42+
days-before-ancient: 36500
43+
44+
# If you don't want to mark a issue as being ancient based on a
45+
# threshold of "upvotes", you can set this here. An "upvote" is
46+
# the total number of +1, heart, hooray, and rocket reactions
47+
# on an issue.
48+
minimum-upvotes-to-exempt: 5
49+
50+
repo-token: ${{ secrets.GITHUB_TOKEN }}
51+
loglevel: DEBUG
52+
# Set dry-run to true to not perform label or close actions.
53+
dry-run: false

0 commit comments

Comments
 (0)