Skip to content

Commit

Permalink
Add stale bot to manage the Issues/PRs automatically (#28)
Browse files Browse the repository at this point in the history
- Inactive Issues that are labeled with 'awaiting-feedback' will get marked as 'stale' after a period of time, then closed
- Inactive PRs that are not in draft, or labeled with 'work-in-progress' or 'dependencies' will get marked as 'stale' after a period of time, then closed
- Added dependabot support for GitHub Actions to keep our actions up-to-date

Signed-off-by: Antal János Monori <[email protected]>
  • Loading branch information
anthonymonori authored Nov 23, 2021
1 parent 4191a01 commit c0b127b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
version: 2
updates:
- package-ecosystem: gradle
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 5
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Maintenance

permissions:
issues: write
pull-requests: write

on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

stale-issue-message: 'This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
close-issue-message: 'This issue has now been closed. Please raise a new Issue instead of re-opening existing ones, unless you believe this was closed by accident.'
days-before-issue-stale: 31
days-before-issue-close: 7
stale-issue-label: 'stale'
only-issue-labels: 'awaiting-feedback'
exempt-issue-labels: 'confirmed'

stale-pr-message: 'This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
close-pr-message: 'This pull request has now been closed. If you want to continue working on it or you believe it has been closed by accident, feel free to re-open it.'
days-before-pr-stale: 31
days-before-pr-close: 7
stale-pr-label: 'stale'
exempt-pr-labels: 'work-in-progress,dependencies'
exempt-draft-pr: true

0 comments on commit c0b127b

Please sign in to comment.