---
.github/workflows/remove-assignees.yml | 20 ++++++++++++++++++
.github/workflows/stale-issue.yml | 29 ++++++++++++++++++++++++++
2 files changed, 49 insertions(+)
create mode 100644 .github/workflows/remove-assignees.yml
create mode 100644 .github/workflows/stale-issue.yml
diff --git a/.github/workflows/remove-assignees.yml b/.github/workflows/remove-assignees.yml
new file mode 100644
index 000000000..4a9c83347
--- /dev/null
+++ b/.github/workflows/remove-assignees.yml
@@ -0,0 +1,20 @@
+name: 'Remove Assignees for stale issue'
+on:
+ issues:
+ types: [labeled]
+
+permissions:
+ issues: write
+
+jobs:
+ remove-assignees:
+ if: github.event.label.name == 'stale'
+ runs-on: ubuntu-latest
+ steps:
+ - name: 이슈 할당 해제
+ run: |
+ curl -X PATCH \
+ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
+ -H "Accept: application/vnd.github.v3+json" \
+ "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}" \
+ -d '{"assignees":[]}'
diff --git a/.github/workflows/stale-issue.yml b/.github/workflows/stale-issue.yml
new file mode 100644
index 000000000..19f660577
--- /dev/null
+++ b/.github/workflows/stale-issue.yml
@@ -0,0 +1,29 @@
+name: 'Stale Issue'
+on:
+ schedule:
+ - cron: '0 1 * * *'
+ workflow_dispatch:
+
+permissions:
+ issues: write
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v9
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ days-before-stale: 30
+ days-before-close: -1
+
+ stale-issue-message: '30일 동안 작업이 없어 할당을 해제합니다.'
+ stale-issue-label: 'stale'
+ exempt-issue-labels: 'DO NOT CLOSE OR MERGE,discussion,term,TIP'
+
+ days-before-pr-stale: -1
+
+ labels-to-remove-when-unstale: 'stale'
+
+ include-only-assigned: true
+
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy