Skip to content

Commit e916ee3

Browse files
committed
ci: add PR size labeler with generated files ignored
1 parent 9028ced commit e916ee3

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/review.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,52 @@ permissions:
99
pull-requests: write
1010

1111
jobs:
12+
pr-size:
13+
name: PR Size Label
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: codelytv/pr-size-labeler@v1
17+
with:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
xs_label: "size/xs"
20+
xs_max_size: "10"
21+
s_label: "size/s"
22+
s_max_size: "100"
23+
m_label: "size/m"
24+
m_max_size: "500"
25+
l_label: "size/l"
26+
l_max_size: "1000"
27+
xl_label: "size/xl"
28+
fail_if_xl: "false"
29+
message_if_xl: >
30+
This PR exceeds the recommended size of 1000 lines.
31+
Please make sure you are NOT addressing multiple issues with one PR.
32+
Note this PR might be rejected due to its size.
33+
github_api_url: "https://api.github.com"
34+
files_to_ignore: |
35+
pnpm-lock.yaml
36+
**/pnpm-lock.yaml
37+
package-lock.json
38+
**/package-lock.json
39+
yarn.lock
40+
**/yarn.lock
41+
pubspec.lock
42+
**/pubspec.lock
43+
uv.lock
44+
**/uv.lock
45+
Gemfile.lock
46+
**/Gemfile.lock
47+
*.g.dart
48+
**/*.g.dart
49+
*.freezed.dart
50+
**/*.freezed.dart
51+
*.gen.ts
52+
**/*.gen.ts
53+
.terraform.lock.hcl
54+
**/.terraform.lock.hcl
55+
apps/web/src/config/messages/*.json
56+
apps/mobile/lib/i18n/messages/*.arb
57+
1258
biome:
1359
name: Biome (JS/TS)
1460
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)