Skip to content

ci(pr-quality): add caller for the org-wide PR Quality Gates reusable#14

Merged
CybotTM merged 1 commit into
mainfrom
ci/add-pr-quality-gates
May 22, 2026
Merged

ci(pr-quality): add caller for the org-wide PR Quality Gates reusable#14
CybotTM merged 1 commit into
mainfrom
ci/add-pr-quality-gates

Conversation

@CybotTM
Copy link
Copy Markdown
Member

@CybotTM CybotTM commented May 22, 2026

Summary

Closes the same org-policy gap that was just fixed in netresearch/phpbu-docker#124: this repo was missing the canonical pr-quality.yml caller that every other Netresearch container/library repo uses (netresearch/ofelia, netresearch/phpbu-docker, netresearch/ldap-selfservice-password-changer, the t3x-* TYPO3 extensions).

What the reusable does

  • PR size labeling — warns over 500 lines changed, alerts over 1000
  • Auto-approve for maintainer PRsauthor_association ∈ {OWNER, MEMBER, COLLABORATOR} gets a programmatic approval. Useful both for branch-protection "1 approval" gates and the Copilot ruleset's "1 approval" requirement. Copilot's review bot still runs separately via the org-level Copilot ruleset (not via this workflow), so it doesn't bypass that gate.

Caller config

Matches the netresearch/ofelia and netresearch/phpbu-docker callers verbatim (modulo SPDX header). No caller-side knobs needed.

Test plan

  • actionlint clean
  • CI green on this branch
  • After merge: confirm a future maintainer PR gets auto-approved on push

Note re SonarCloud

Adds one @main reusable ref → may surface a new githubactions:S7637 LOW hotspot. The project's Quality Profile rule deactivation (done during PR #11) should already cover this. If not, mark SAFE per the org pattern.

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 <info@sebastianmendel.de>
Copilot AI review requested due to automatic review settings May 22, 2026 15:53
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 22, 2026

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for maintainer PR

All automated quality gates passed. See SECURITY_CONTROLS.md for compensating controls.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the repository-standard GitHub Actions workflow that calls Netresearch’s org-wide “PR Quality Gates” reusable workflow, bringing this repo in line with the container/library repos’ CI policy.

Changes:

  • Introduces a new PR Quality Gates workflow triggered on PR events to main.
  • Delegates PR size labeling and maintainer auto-approval to netresearch/.github/.github/workflows/pr-quality.yml@main.
  • Scopes the GITHUB_TOKEN permissions to only what the caller job needs (contents: read, pull-requests: write) with workflow-level permissions disabled by default.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@CybotTM CybotTM merged commit 6b3515c into main May 22, 2026
24 of 25 checks passed
@CybotTM CybotTM deleted the ci/add-pr-quality-gates branch May 22, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants