Skip to content

Commit 9517209

Browse files
committed
chore(ci): add new workflows
1 parent 670bce7 commit 9517209

File tree

3 files changed

+106
-0
lines changed

3 files changed

+106
-0
lines changed

.github/labeler.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
test:
2+
- changed-files:
3+
- any-glob-to-any-file: 'tests/**'
4+
5+
ci:
6+
- changed-files:
7+
- any-glob-to-any-file: '.github/workflows/**'
8+
9+
utils:
10+
- changed-files:
11+
- any-glob-to-any-file: 'src/utils/**'
12+
13+
core:
14+
- changed-files:
15+
- any-glob-to-any-file: 'src/core/**'
16+
17+
middleware:
18+
- changed-files:
19+
- any-glob-to-any-file: 'src/middleware/**'
20+
21+
cache:
22+
- changed-files:
23+
- any-glob-to-any-file: 'src/cache/**'
24+
25+
config:
26+
- changed-files:
27+
- any-glob-to-any-file: '*.config.js'
28+
- any-glob-to-any-file: '*.config.mjs'
29+
- any-glob-to-any-file: '*.config.ts'
30+
- any-glob-to-any-file: 'config/**'
31+
32+
types:
33+
- changed-files:
34+
- any-glob-to-any-file: 'src/types/**'
35+
36+
readme:
37+
- changed-files:
38+
- any-glob-to-any-file: 'README.md'
39+
40+
changelog:
41+
- changed-files:
42+
- any-glob-to-any-file: 'CHANGELOG.md'
43+
44+
dependency:
45+
- changed-files:
46+
- any-glob-to-any-file: 'package.json'
47+
- any-glob-to-any-file: 'package-lock.json'
48+
49+
docs:
50+
- changed-files:
51+
- any-glob-to-any-file: 'docs/**'
52+
53+
scripts:
54+
- changed-files:
55+
- any-glob-to-any-file: 'scripts/**'
56+
57+
env:
58+
- changed-files:
59+
- any-glob-to-any-file: '.env*'
60+
61+
feature:
62+
- head-branch: ['^feature-']
63+
64+
hotfix:
65+
- head-branch: ['^hotfix-']
66+

.github/workflows/labeler.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 🏷️ Pull Request Labeler
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
workflow_dispatch:
7+
schedule:
8+
- cron: "0 1 * * 1"
9+
10+
jobs:
11+
label:
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
issues: write
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/labeler@v5
19+
with:
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 💤 Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # every day
6+
workflow_dispatch:
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v9
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
stale-issue-message: 'This issue is stale because it has been open for 90 days with no activity.'
16+
stale-pr-message: 'This pull request is stale because it has been open for 90 days with no activity.'
17+
days-before-stale: 90
18+
days-before-close: 7
19+
close-issue-message: 'This issue was closed due to inactivity.'
20+
close-pr-message: 'This pull request was closed due to inactivity.'

0 commit comments

Comments
 (0)