diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 7833cc73..33c73913 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,20 +1,21 @@ -# Copyright 2023 Hyperledger Labs. +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 30 -# Number of days of inactivity before a stale Issue or Pull Request is closed -daysUntilClose: 60 -# Number of days of inactivity before a reminder comment is posted. Set to `false` to disable -daysBeforeReminder: 14 -# Only issues or pull requests with all of these labels are checked if stale. Defaults to `[]` (disabled) -onlyLabels: - - awaiting response -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you. -# Comment to post when removing the stale label. Set to `false` to disable -unmarkComment: false -closeComment: > - Closing as stale. Please reopen if you'd like to work on this further. \ No newline at end of file +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + stale-issue-label: 'stale' + stale-pr-label: 'stale' + close-issue-message: 'This issue was closed because it has been stalled with no activity.' + close-pr-message: 'This PR was closed because it has been stalled with no activity.' + days-before-stale: 30 + days-before-close: 7 + only-labels: 'awaiting response' + ignore-updates: true \ No newline at end of file