Skip to content

Commit c33ffb6

Browse files
committed
chore(ci): add new workflows
1 parent 8809cfb commit c33ffb6

File tree

4 files changed

+110
-2
lines changed

4 files changed

+110
-2
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/audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 🔒 Audit Dependencies
1+
name: 🔒 Dependency Audit
22

33
on:
44
schedule:
@@ -7,8 +7,8 @@ on:
77

88
jobs:
99
audit:
10+
name: 🔒 Audit Dependencies
1011
runs-on: ubuntu-latest
11-
1212
steps:
1313
- name: ⬇️ Checkout repository
1414
uses: actions/checkout@v4

.github/workflows/labeler.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 🏷️ Auto PR 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+
name: 🏷️ Apply Labels to PRs
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
issues: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/labeler@v5
20+
with:
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

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

0 commit comments

Comments
 (0)