diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 3161cb209..bb0921032 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -13,6 +13,7 @@ updates: include: "scope" labels: - dependencies + - dependabot open-pull-requests-limit: 10 rebase-strategy: auto versioning-strategy: "increase-if-necessary" @@ -27,6 +28,7 @@ updates: prefix: "ci" labels: - dependencies + - dependabot rebase-strategy: auto groups: github-actions: diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 68c4b43eb..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,58 +0,0 @@ -# Configuration for probot-stale # -# CAO: https://github.com/probot/stale/tree/4232daafc73492864b559b55c9cf2689d19d5b23 # -# ================================================================================== # -# Rule summary -# ---------------------------------------------------------------------------------- # -# Comment & mark 90-day old issues as stale -# Close stalled issues after 7 days -# Comment & mark 60-day old PR as stale -# Close stalled PRs after 10 days -# Any issue/pr with a planned milestone is exempt -# Issues/PRs with a confirmed label are exempt -# ================================================================================== # -# See repo url for descriptions of settings - -# ALL -staleLabel: stale -limitPerRun: 30 # numActions/hour - - -issues: - daysUntilStale: 90 - daysUntilClose: 7 - exemptProjects: false - exemptMilestones: true - exemptAssignees: false - exemptLabels: - - confirmed - - help-wanted - markComment: > - This issue is stale because it 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. - unmarkComment: > - Thank you for the update and contribution! The stale label has been removed - and this issue will not be closed at this time. - closeComment: > - This issue was closed because activity was dormant for 97 days. - - -pulls: - daysUntilStale: 60 - daysUntilClose: 10 - exemptProjects: false - exemptMilestones: true - exemptAssignees: false - exemptLabels: - - confirmed - # Ignore PRs opened by Dependabot - - dependencies - markComment: > - This PR is stale because it has 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. - unmarkComment: > - Thank you for the update and contribution! The stale label has been removed - and this PR will not be closed at this time. - closeComment: > - This PR was closed because activity was dormant for 70 days. diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..207a6c61d --- /dev/null +++ b/.github/workflows/stale.yml @@ -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.