Skip to content

Commit

Permalink
chore(stalebot): refactor to use CI action for stale issue/pr evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
codejedi365 committed Mar 24, 2024
1 parent 12517ed commit a352050
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 58 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ updates:
include: "scope"
labels:
- dependencies
- dependabot
open-pull-requests-limit: 10
rebase-strategy: auto
versioning-strategy: "increase-if-necessary"
Expand All @@ -27,6 +28,7 @@ updates:
prefix: "ci"
labels:
- dependencies
- dependabot
rebase-strategy: auto
groups:
github-actions:
Expand Down
58 changes: 0 additions & 58 deletions .github/stale.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: 'Stale Bot'
on:
schedule:
# Execute Daily at 7:15 AM UTC
- cron: '15 7 * * *'

# Default token permissions = None
permissions: {}


jobs:
stale:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
# default: 30, GitHub Actions API Rate limit is 1000/hr
operations-per-run: 200
exempt-all-milestones: true
# exempt-all-assignees: false (default)
stale-issue-label: stale
days-before-issue-stale: 90
days-before-issue-close: 7
exempt-issue-labels: confirmed, help-wanted
stale-issue-message: >
This issue is stale because it has not been confirmed or planned by the maintainers
and has been open 90 days with no recent activity. It will be closed in 7 days,
if no further activity occurs. Thank you for your contributions.
close-issue-message: >
This issue was closed because activity was dormant for 97 days.
# PR Configurations
stale-pr-label: stale
days-before-pr-stale: 60
days-before-pr-close: 10
exempt-pr-labels: confirmed, dependabot
stale-pr-message: >
This PR is stale because it has not been confirmed or planned by the maintainers
and had been open 60 days with no recent activity. It will be closed in 10 days,
if no further activity occurs. Thank you for your contributions.
close-pr-message: >
This PR was closed because activity was dormant for 70 days.

0 comments on commit a352050

Please sign in to comment.