From 23b460d78f6afbe73f1f0c439a9dc151a9e3ad6b Mon Sep 17 00:00:00 2001 From: Djoyke Reijans <115019123+DjoykeAbyah@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:58:39 +0200 Subject: [PATCH] added label new issues.yml and stale.yml (#1034) --- .github/workflows/label_new_issues.yml | 14 ++++++++++++++ .github/workflows/stale.yml | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/label_new_issues.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/label_new_issues.yml b/.github/workflows/label_new_issues.yml new file mode 100644 index 00000000..18c7d92f --- /dev/null +++ b/.github/workflows/label_new_issues.yml @@ -0,0 +1,14 @@ +name: Label New Issues +on: + issues: + types: [opened] + +jobs: + add-label: + runs-on: ubuntu-latest + steps: + - name: Add 'needs response' label to new issues + uses: actions-ecosystem/action-add-labels@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: 'needs response' diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..8e4810b8 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,18 @@ +name: Close Stale Issues +on: + schedule: + - cron: '30 8 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs.' + close-issue-message: 'This issue was closed due to inactivity. Please reopen if you still encounter this problem or have more information to add.' + days-before-stale: 14 + days-before-close: 7 + stale-issue-label: 'stale' + exempt-issue-labels: 'do not stale, needs response'