Skip to content

Commit

Permalink
Merge pull request #1981 from stloyd/gh/stale
Browse files Browse the repository at this point in the history
Add GH action to close stale stuff
  • Loading branch information
stloyd authored Feb 22, 2024
2 parents 55a8a2d + 60cffb3 commit 08c7d47
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
paths:
- '.github/workflows/**'
- 'src/**'
- 'tests/**'
- 'phpstan.neon'
- 'phpunit.xml.dist'
- 'composer.json'

# See https://stackoverflow.com/a/72408109
concurrency:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Close stale issues and PRs'

permissions:
issues: write
pull-requests: write

on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'Message to comment on stale issues. If none provided, will not mark issues stale'
stale-pr-message: 'Message to comment on stale PRs. If none provided, will not mark PRs stale'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
days-before-stale: 60
days-before-close: 5
exempt-issue-labels: 'Documentation'
exempt-all-pr-assignees: true

0 comments on commit 08c7d47

Please sign in to comment.