Skip to content

Commit 7c7f160

Browse files
committed
ci: pull request labeler action
1 parent a85fe39 commit 7c7f160

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

.github/labeler.yml

Lines changed: 53 additions & 0 deletions
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

Lines changed: 17 additions & 0 deletions
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 }}"

3sum/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("test change");

alien-dictionary/test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("test")

0 commit comments

Comments
 (0)