From 950edb91d5d67e7d0817dae7ddef1f7d72df0e16 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Fri, 22 May 2026 17:53:30 +0200 Subject: [PATCH] ci(pr-quality): add caller for the org-wide PR Quality Gates reusable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This repo was missing the standard Netresearch PR-quality + auto-approve workflow that other org repos use (netresearch/ofelia, phpbu-docker as of c1d02e0, netresearch/ldap-selfservice-password-changer, the t3x-* TYPO3 extensions, etc.). Adding the canonical caller. The reusable (netresearch/.github/.github/workflows/pr-quality.yml@main) provides: - PR size labeling (warns over 500 lines changed, alerts over 1000) - Auto-approve for maintainer PRs whose author_association is one of OWNER / MEMBER / COLLABORATOR. Useful even without strict branch protection: the same Copilot ruleset that runs the Copilot review bot also requests "1 approval" on some PRs, and this auto-approve satisfies that gate for routine maintainer work. Copilot's own review runs separately via the ruleset, NOT via this workflow. Caller config matches the pattern used in netresearch/ofelia + netresearch/phpbu-docker verbatim (modulo SPDX header) — no caller-side knobs needed. Signed-off-by: Sebastian Mendel --- .github/workflows/pr-quality.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/pr-quality.yml diff --git a/.github/workflows/pr-quality.yml b/.github/workflows/pr-quality.yml new file mode 100644 index 0000000..cbb4115 --- /dev/null +++ b/.github/workflows/pr-quality.yml @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2026 Netresearch DTT GmbH +# +# PR Quality Gates — caller for the org-wide reusable workflow. +# Provides: +# - PR size labeling (warn over 500 lines, alert over 1000) +# - Auto-approve for maintainer PRs (OWNER/MEMBER/COLLABORATOR), so +# branch-protection or Copilot-ruleset approval gates don't block +# trivial maintainer work; Copilot review still runs separately +# via the Copilot ruleset (not via this workflow). +# Reusable: netresearch/.github/.github/workflows/pr-quality.yml + +name: PR Quality Gates + +on: + pull_request: + branches: [main] + types: [opened, synchronize, reopened, ready_for_review] + +permissions: {} + +jobs: + quality: + uses: netresearch/.github/.github/workflows/pr-quality.yml@main + with: + auto-approve-maintainers: true + permissions: + contents: read + pull-requests: write