Skip to content

Commit 752fcd1

Browse files
authored
fix(actions): redo labeler (react-grid-layout#2052)
1 parent 5e29dbd commit 752fcd1

File tree

2 files changed

+36
-27
lines changed

2 files changed

+36
-27
lines changed

Diff for: .github/labeler.yml

+30-18
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,41 @@
11
documentation:
2-
- test/examples/**/*
3-
- README.md
4-
- examples/**/*
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- test/examples/**/*
5+
- README.md
6+
- examples/**/*
57

68
core:
7-
- lib/**/*
9+
- changed-files:
10+
- any-glob-to-any-file:
11+
- lib/**/*
812

913
release:
10-
- dist/**/*
14+
- changed-files:
15+
- any-glob-to-any-file:
16+
- dist/**/*
1117

1218
tests:
13-
- test/spec/**/*
19+
- changed-files:
20+
- any-glob-to-any-file:
21+
- test/spec/**/*
1422

1523
deps:
16-
- yarn.lock
24+
- changed-files:
25+
- any-glob-to-any-file:
26+
- yarn.lock
1727

1828
infrastructure:
19-
- .github/**/*
20-
- .babelrc
21-
- .eslintignore
22-
- .eslintrc.json
23-
- .flowconfig
24-
- .gitignore
25-
- .npmignore
26-
- .travis.yml
27-
- build.sh
28-
- package.json
29-
- webpack*
29+
- changed-files:
30+
- any-glob-to-any-file:
31+
- .github/**/*
32+
- .babelrc
33+
- .eslintignore
34+
- .eslintrc.json
35+
- .flowconfig
36+
- .gitignore
37+
- .npmignore
38+
- .travis.yml
39+
- build.sh
40+
- package.json
41+
- webpack*

Diff for: .github/workflows/label.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
---
22
name: Pull request labeler
33
on:
4-
schedule:
5-
- cron: "*/5 * * * *"
4+
- pull_request_target
65
jobs:
76
labeler:
87
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
pull-requests: write
911
steps:
10-
- uses: paulfantom/periodic-labeler@master
11-
permissions:
12-
issues: write
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15-
GITHUB_REPOSITORY: ${{ github.repository }}
16-
LABEL_MAPPINGS_FILE: .github/labeler.yml
12+
- id: label-the-PR
13+
uses: actions/labeler@v5

0 commit comments

Comments
 (0)