Skip to content

Commit b56d634

Browse files
Add stale workflow
1 parent 5ca831b commit b56d634

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- main
88

99
env:
10-
COMPOSER_HOME: /tmp/composer-cache
10+
COMPOSER_CACHE_DIR: /tmp/composer-cache
1111

1212
jobs:
1313
rector_analysis:
@@ -30,7 +30,7 @@ jobs:
3030
- name: Cache Composer dependencies
3131
uses: actions/cache@v4
3232
with:
33-
path: ${{ env.COMPOSER_HOME }}
33+
path: ${{ env.COMPOSER_CACHE_DIR }}
3434
key: ${{ runner.os }}-${{ env.PHP_VERSION }}-${{ hashFiles('**/composer.json') }}
3535

3636
- run: composer install --no-progress --no-interaction
@@ -72,7 +72,7 @@ jobs:
7272
- name: Cache Composer dependencies
7373
uses: actions/cache@v4
7474
with:
75-
path: ${{ env.COMPOSER_HOME }}
75+
path: ${{ env.COMPOSER_CACHE_DIR }}
7676
key: ${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }}
7777

7878
- run: composer install --no-progress --no-interaction

.github/workflows/stale.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
3+
name: Close stale issues and PRs
4+
5+
on:
6+
schedule:
7+
- cron: '0 7 * * *'
8+
9+
permissions: { }
10+
11+
concurrency:
12+
group: close-stale-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
stale:
17+
name: Close stale issues and PRs
18+
runs-on: ubuntu-24.04
19+
permissions:
20+
actions: write
21+
issues: write
22+
pull-requests: write
23+
steps:
24+
- uses: actions/stale@v10.1.0
25+
with:
26+
sort-by: updated
27+
ascending: true # Start with ascending to process oldest items first
28+
days-before-stale: 60
29+
days-before-close: 30
30+
exempt-all-milestones: true
31+
stale-issue-message: >-
32+
In an effort to keep our issue list manageable, we are marking this issue as stale because it has been 60 days without activity.
33+
If this issue is still relevant, please let us know by posting a quick comment so that it remains open.
34+
close-issue-message: >-
35+
This issue was closed because it has been stalled for 90 days with no activity.
36+
Feel free to open a new issue if necessary!
37+
stale-pr-message: >-
38+
In an effort to keep our pull request list manageable, we are marking this PR as stale because it has been 60 days without activity.
39+
If this PR is still relevant, please let us know by posting a quick comment or update so that it can be assigned and hopefully merged.
40+
close-pr-message: >-
41+
This PR was closed because it has been stalled for 90 days with no activity.
42+
Feel free to open a new PR if necessary!

0 commit comments

Comments
 (0)