Skip to content

Commit e33cc14

Browse files
authored
ci: add pr langauge labeler on pull_request_target event (#379)
* ci: add pr langauge labeler on `pull_request_target` event * ci: modify elixir extension
1 parent bb0db1a commit e33cc14

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

.github/labeler.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
js:
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- "**/*.js"
5+
6+
ts:
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- "**/*.ts"
10+
11+
py:
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+
swift:
27+
- changed-files:
28+
- any-glob-to-any-file:
29+
- "**/*.swift"
30+
31+
kotlin:
32+
- changed-files:
33+
- any-glob-to-any-file:
34+
- "**/*.kt"
35+
36+
go:
37+
- changed-files:
38+
- any-glob-to-any-file:
39+
- "**/*.go"
40+
41+
elixir:
42+
- changed-files:
43+
- any-glob-to-any-file:
44+
- "**/*.exs"

.github/workflows/automation.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@ jobs:
1111
pull-requests: write
1212
steps:
1313
- uses: toshimaru/[email protected]
14+
15+
label-lang:
16+
runs-on: ubuntu-latest
17+
continue-on-error: true
18+
19+
permissions:
20+
contents: read
21+
pull-requests: write
22+
23+
steps:
24+
- uses: actions/labeler@v5
25+
with:
26+
repo-token: ${{ github.token }}

0 commit comments

Comments
 (0)