chore: Add size pipeline
All checks were successful
Label PRs based on size / Check PR size (pull_request) Successful in 7s
Release / Release (push) Successful in 30s

This commit is contained in:
Jan K9f 2025-06-19 14:10:18 +02:00
commit 8212b10e25
Signed by: jank
GPG key ID: 22BEAC760B3333D6
2 changed files with 36 additions and 0 deletions

19
.gitea/size.yml Normal file
View file

@ -0,0 +1,19 @@
buckets:
- maxSize: 80
label: size/small
comment: null
- maxSize: 200
label: size/medium
comment: null
- maxSize: 2000
label: size/large
comment: >
👮‍♀️⚠️ This is a friendly reminder that the diff size of this PR is bigger than
200 lines we aim for. Please consider splitting this PR into more digestible pieces!
- maxSize: Infinity
label: size/huge
comment: >
👮‍♀️🛑 This PR's diff size is quite huge.
Hopefully you know what you're doing.
If you did not commit a lot of autogenerated files intentionally,
there are few good reasons for this.

17
.gitea/workflows/size.yml Normal file
View file

@ -0,0 +1,17 @@
name: Label PRs based on size
on: [pull_request]
jobs:
add_pr_size_label:
runs-on: ubuntu-latest
name: Check PR size
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Label and comment PR
uses: boschresearch/pr-size-labeler@v5.0.1
with:
bucketConfigFile: ".gitea/size.yml"