Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Apply suggested edits from @hmellor.

Co-authored-by: Harry Mellor <[email protected]>
  • Loading branch information
russellb and hmellor authored Oct 17, 2024
1 parent 4edea65 commit 36a3979
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -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: >
Expand Down

0 comments on commit 36a3979

Please sign in to comment.