From 36a3979cac83923c23bf26e8a588fdd0cfa10cbd Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 17 Oct 2024 13:00:42 -0400 Subject: [PATCH] Apply suggestions from code review Apply suggested edits from @hmellor. Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --- .github/workflows/stale.yml | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index db48fb014013c..10d930a6f5995 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,54 +1,37 @@ -name: 'Close stale issues and PRs' +name: 'Close inactive issues and PRs' on: schedule: # Daily at 1:30 AM UTC - cron: '30 1 * * *' -env: - LC_ALL: en_US.UTF-8 - -defaults: - run: - shell: bash - -permissions: - contents: read - jobs: - stale: + close-issues-and-pull-requests: permissions: issues: write pull-requests: write runs-on: ubuntu-latest steps: - - name: "Stale Action" uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 with: - # Apply the `stale` label to an issue with no activity for 90 days. days-before-issue-stale: 90 - # Close the issue if no activity occurs within 30 days after being - # marked as stale. days-before-issue-close: 30 stale-issue-label: 'stale' stale-issue-message: > This issue has been automatically marked as stale because it has not - had activity within 90 days. It will be automatically closed if no + had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you! close-issue-message: > This issue has been automatically closed due to inactivity. Please feel free to reopen if you feel it is still relevant. Thank you! - # Apply the `stale` label to a pull request with no activity for 90 days. days-before-pr-stale: 90 - # Close the pull request if no activity occurs within 30 days after - # being marked as stale. days-before-pr-close: 30 stale-pr-label: 'stale' stale-pr-message: > This pull request has been automatically marked as stale because it - has not had activity within 90 days. It will be automatically + has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this pull request should remain open. Thank you! close-pr-message: >