Skip to content

Commit

Permalink
added new issue labeler and stalebot (#250)
Browse files Browse the repository at this point in the history
* added new issue labeler and stalebot

* added newline
  • Loading branch information
DjoykeAbyah committed Jul 4, 2024
1 parent 4d1b0cb commit e8ce60c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/label_new_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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'

19 changes: 19 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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 e8ce60c

Please sign in to comment.