diff --git a/.github/workflows/pr-size.yml b/.github/workflows/pr-size.yml new file mode 100644 index 0000000..80ddffc --- /dev/null +++ b/.github/workflows/pr-size.yml @@ -0,0 +1,28 @@ +name: PR size + +on: + pull_request: + types: [opened, reopened, synchronize, ready_for_review, converted_to_draft] + pull_request_review: + types: [submitted, dismissed] + +permissions: + contents: read + issues: write + pull-requests: write + +concurrency: + group: pr-size-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + size: + name: PR size + runs-on: ubuntu-24.04 + timeout-minutes: 5 + steps: + - uses: actions/checkout@v7 + with: + fetch-depth: 0 + persist-credentials: false + - uses: TF-Minecraft/TLibs/.github/actions/pr-size@3d2f19d6c6a20af17402a4c57835c7a40415e8ae