[Workflow] Add stale action to workflows (#1860)
authorWonYoung Choi <wy80.choi@samsung.com>
Fri, 24 Jul 2020 10:27:19 +0000 (19:27 +0900)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2020 10:27:19 +0000 (19:27 +0900)
.github/workflows/stale.yml [new file with mode: 0644]

diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644 (file)
index 0000000..f9f208c
--- /dev/null
@@ -0,0 +1,14 @@
+name: "Close stale issues"
+on:
+  schedule:
+  - cron: "0 15 * * *"
+
+jobs:
+  stale:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/stale@v3
+      with:
+        repo-token: ${{ secrets.GITHUB_TOKEN }}
+        stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days'
+        stale-pr-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days'