Skip to content

Commit 03c076c

Browse files
committed
ci: pull request labeler action
1 parent a85fe39 commit 03c076c

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

.github/labeler.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
JavaScript:
2+
- "**/*.js"
3+
4+
TypeScript:
5+
- "**/*.ts"
6+
7+
Python:
8+
- "**/*.py"
9+
10+
Java:
11+
- "**/*.java"
12+
13+
C++:
14+
- "**/*.cpp"
15+
16+
C:
17+
- "**/*.c"
18+
19+
C#:
20+
- "**/*.cs"
21+
22+
PHP:
23+
- "**/*.php"
24+
25+
Swift:
26+
- "**/*.swift"
27+
28+
Kotlin:
29+
- "**/*.kt"
30+
31+
Dart:
32+
- "**/*.dart"
33+
34+
Go:
35+
- "**/*.go"
36+
37+
Ruby:
38+
- "**/*.rb"
39+
40+
Scala:
41+
- "**/*.scala"
42+
43+
Rust:
44+
- "**/*.rs"
45+
46+
Racket:
47+
- "**/*.rkt"
48+
49+
Erlang:
50+
- "**/*.erl"
51+
52+
Elixir:
53+
- "**/*.ex"

.github/workflows/pr-labeler.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Pull Request Labeler"
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
label:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: "Check out code"
12+
uses: actions/checkout@v3
13+
14+
- name: "Run Labeler"
15+
uses: actions/labeler@v5
16+
with:
17+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)