Skip to content

Commit

Permalink
added new issues an stale yml (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
DjoykeAbyah committed Jul 4, 2024
1 parent 6ca510d commit be8f337
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/label_new_issues.yml
Original file line number Diff line number Diff line change
@@ -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'
18 changes: 18 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit be8f337

Please sign in to comment.