Skip to content

Commit 6668f50

Browse files
committed
ci: pull request labeler action
1 parent a85fe39 commit 6668f50

File tree

2 files changed

+107
-0
lines changed

2 files changed

+107
-0
lines changed

.github/labeler.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
JavaScript:
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- "**/*.js"
5+
6+
TypeScript:
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- "**/*.ts"
10+
11+
Python:
12+
- changed-files:
13+
- any-glob-to-any-file:
14+
- "**/*.py"
15+
16+
Java:
17+
- changed-files:
18+
- any-glob-to-any-file:
19+
- "**/*.java"
20+
21+
C++:
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- "**/*.cpp"
25+
26+
C:
27+
- changed-files:
28+
- any-glob-to-any-file:
29+
- "**/*.c"
30+
31+
C#:
32+
- changed-files:
33+
- any-glob-to-any-file:
34+
- "**/*.cs"
35+
36+
PHP:
37+
- changed-files:
38+
- any-glob-to-any-file:
39+
- "**/*.php"
40+
41+
Swift:
42+
- changed-files:
43+
- any-glob-to-any-file:
44+
- "**/*.swift"
45+
46+
Kotlin:
47+
- changed-files:
48+
- any-glob-to-any-file:
49+
- "**/*.kt"
50+
51+
Dart:
52+
- changed-files:
53+
- any-glob-to-any-file:
54+
- "**/*.dart"
55+
56+
Go:
57+
- changed-files:
58+
- any-glob-to-any-file:
59+
- "**/*.go"
60+
61+
Ruby:
62+
- changed-files:
63+
- any-glob-to-any-file:
64+
- "**/*.rb"
65+
66+
Scala:
67+
- changed-files:
68+
- any-glob-to-any-file:
69+
- "**/*.scala"
70+
71+
Rust:
72+
- changed-files:
73+
- any-glob-to-any-file:
74+
- "**/*.rs"
75+
76+
Racket:
77+
- changed-files:
78+
- any-glob-to-any-file:
79+
- "**/*.rkt"
80+
81+
Erlang:
82+
- changed-files:
83+
- any-glob-to-any-file:
84+
- "**/*.erl"
85+
86+
Elixir:
87+
- changed-files:
88+
- any-glob-to-any-file:
89+
- "**/*.ex"

.github/workflows/pr-labeler.yaml

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

0 commit comments

Comments
 (0)