Skip to content

Commit 8d47a7c

Browse files
sayanshaw24Sayan Shaw
andauthored
Add stale issue handler (#875)
* add stale issue handler * update days before stale --------- Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
1 parent e00b123 commit 8d47a7c

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Close stale issues
2+
on:
3+
# Allows you to dictate when you want this workflow to run using cron syntax (times in UTC)
4+
schedule:
5+
- cron: "0 15 * * *"
6+
# Allows you to run this workflow manually from the Actions tab
7+
# workflow_dispatch:
8+
9+
jobs:
10+
close-stale-issues:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
steps:
16+
- uses: actions/stale@v8
17+
with:
18+
# Comma separated list of labels that can be assigned to issues to exclude them from being marked as stale
19+
exempt-issue-labels: contributions welcome, feature request, regression
20+
# Override exempt-all-assignees but only to exempt the issues with an assignee to be marked as stale automatically
21+
exempt-all-issue-assignees: true
22+
# Used to ignore the issues and pull requests created before the start date
23+
# Start date should be April 19, 2022 - corresponds to the day previous stale bot stopped working
24+
start-date: '2022-04-19T00:00:00Z'
25+
# Number of days without activity before the actions/stale action labels an issue
26+
days-before-issue-stale: 90
27+
# Number of days without activity before the actions/stale action closes an issue
28+
days-before-issue-close: 30
29+
# Label you want to apply to issues that have been inactive for the amount of time specified by days-before-issue-stale
30+
stale-issue-label: "stale"
31+
# Comment that you want to add to issues that are labeled by the actions/stale action
32+
stale-issue-message: "This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details."
33+
# Comment that you want to add to issues that are closed by the actions/stale action
34+
close-issue-message: "This issue has been automatically closed due to inactivity. Please reactivate if further support is needed."
35+
# If you never want this action to label PRs, set this value to -1
36+
days-before-pr-stale: -1
37+
# If you never want this action to close PRs, set this value to -1
38+
days-before-pr-close: -1
39+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)