8000 chore(ci): add labeler github action; (#6888) · axios/axios@c3aba3d · GitHub
[go: up one dir, main page]

Skip to content

Commit c3aba3d

Browse files
chore(ci): add labeler github action; (#6888)
1 parent f7a3b5e commit c3aba3d

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/labeler.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
"pr:docs":
3+
- changed-files:
4+
- any-glob-to-any-file: '**.md'
5+
6+
"pr:code":
7+
- changed-files:
8+
- any-glob-to-any-file: 'lib/**.js'
9+
10+
"pr:types":
11+
- changed-files:
12+
- any-glob-to-any-file: ['index.d.ts', 'index.d.cts']
13+
14+
"pr:tests":
15+
- changed-files:
16+
- any-glob-to-any-file: 'test/**.js'
17+
18+
"pr:github-actions":
19+
- changed-files:
20+
- any-glob-to-any-file: '**.d.ts'
21+
22+
"pr:examples":
23+
- changed-files:
24+
- any-glob-to-any-file: 'examples/**.js'
25+
26+
"pr:ci":
27+
- changed-files:
28+
- any-glob-to-any-file: ['bin/**', 'rollup.config.js']
29+
30+
"pr:feature":
31+
- head-branch: ['feature', 'feat']
32+
33+
"pr:fix":
34+
- head-branch: ['fix', 'bug']

.github/workflows/labeler.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
pull_request_target:
4+
workflow_dispatch:
5+
inputs:
6+
prs:
7+
required: false
8+
description: "pr number"
9+
10+
jobs:
11+
labeler:
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/labeler@v5
18+
with:
19+
pr-number: github.event.inputs.prs

0 commit comments

Comments
 (0)
0