Skip to content

Commit

Permalink
Add CI job for stale bot (#2145)
Browse files Browse the repository at this point in the history
* Added github workflow for closing issues

Added action to mark issues as stale after 14 days of inactivity and close them after 14 more days

* Create close-inactive-issues.yml

* added debug-only property

added debug-only property to play with the action before enabling it

* removed redundant job

removed the "close-issues" job as it is now a part of another yaml file

* feat: added new label

Added new label by executing `github-labels sync`

* fix: fixed the label name

Change the label name to "⌛ Status: Waiting for Customer".
  • Loading branch information
mmaltsev-ct authored May 9, 2022
1 parent ca21d0b commit 83a11a4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github-labelsrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[
{
"id": 4077473362,
"name": "⌛ Status: Waiting for Customer",
"color": "000000",
"description": "Waiting for the answer from customer"
},
{
"id": 1045018569,
"name": "⛑ Type: Refactoring",
Expand Down Expand Up @@ -179,4 +185,4 @@
"color": "d876e3",
"description": ""
}
]
]
24 changes: 24 additions & 0 deletions .github/workflows/close-inactive-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v3
with:
any-of-labels: "⌛ Status: Waiting for Customer"
start-date: "2022-04-06 00:00:00.000"
debug-only: true
days-before-issue-stale: 14
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue has been marked as 'stale' due to its inactivity for the last 14 days. Please, add a new comment to keep the conversation going; otherwise, the issue will be closed in two weeks."
close-issue-message: "This issue has been closed due to its inactivity for the last month. Please, feel free to reopen it and add a new comment in case you think the problem has not been resolved."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}

1 comment on commit 83a11a4

@vercel
Copy link

@vercel vercel bot commented on 83a11a4 May 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.