Skip to content

Replace PR Policy with thin caller for reusable workflow - #1145

Merged
berfinyuksel merged 1 commit into
2026.xfrom
chore/pr-policy-thin-caller
Aug 21, 2026
Merged

Replace PR Policy with thin caller for reusable workflow#1145
berfinyuksel merged 1 commit into
2026.xfrom
chore/pr-policy-thin-caller

Conversation

@berfinyuksel

@berfinyuksel berfinyuksel commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Part of pimcore/DevOps-Tasks#43.

The PR Policy logic now lives in the reusable workflow
pimcore/workflows-collection-public/.github/workflows/reusable-pr-policy.yml
(pimcore/workflows-collection-public#164). This one-time change replaces the
previously synced self-contained workflow with a thin caller that never needs
editing; future policy changes apply automatically via @main.

New behavior included: PRs carrying the Skip Milestone Check label are exempt
from the mandatory milestone check. Note the check context changes from
Milestone assigned to PR Policy / Milestone assigned — required-check
configuration must be updated accordingly.

Copilot AI balanced review requested due to automatic review settings August 21, 2026 07:30
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Verdict: Needs changes. Replaces duplicated milestone-policy logic with a centralized reusable workflow.

Changes:

  • Delegates PR policy enforcement to the shared workflow.
  • Re-runs checks when labels change.
  • Adds per-PR concurrency cancellation.

Review contract:

  • .github/workflows/pr-policy.yml:30 addresses the root cause at the correct shared-workflow boundary.
  • No other local policy callers were missed.
  • The changed check context is documented at lines 5–6.
  • No local test applies; policy testing belongs upstream.
  • Blocking risk: the referenced workflow is not yet available on @main.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/pr-policy.yml
@berfinyuksel berfinyuksel added Skip Milestone Check Exempts this PR from the mandatory milestone requirement and removed Skip Milestone Check Exempts this PR from the mandatory milestone requirement labels Aug 21, 2026
@berfinyuksel
berfinyuksel merged commit a160147 into 2026.x Aug 21, 2026
24 of 25 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Skip Milestone Check Exempts this PR from the mandatory milestone requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants