From 1d9b114901776be31c91d6a0180c8ab5c6552eea Mon Sep 17 00:00:00 2001 From: Ryan Barlow <7389646+ryanbarlow97@users.noreply.github.com> Date: Sun, 11 Oct 2026 15:03:33 +0000 Subject: [PATCH] Add the PR size check Labels pull requests by size and requires a second approval from size:L. See https://github.com/TF-Minecraft/Docs/blob/main/PIPELINES.md#pull-request-size Co-Authored-By: Claude Opus 5.5 --- .github/workflows/pr-size.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/pr-size.yml 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