Skip to content

Gate pull requests on a single verify check - #1124

Merged
DamianEdwards merged 2 commits into
mainfrom
damianedwards-pr-check-verification
Nov 24, 2026
Merged

DamianEdwards merged 2 commits into
mainfrom
damianedwards-pr-check-verification

Conversation

@DamianEdwards

@DamianEdwards DamianEdwards commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 7c7a9124cde4da2a9f51f1a15db4acfd18d75c0a

Dimension Assessment Rationale
Change confidence 8/10 ↑ actionlint passed; routing tests covered rename, non-ASCII, newline, and docs-only paths.
↓ The updated workflow has not yet run on GitHub.
Diagnosis confidence 10/10 ↑ Reproduced both review findings: rename detection hid the MAUI source path, and Git-quoted non-ASCII paths missed the MAUI filter.
Evidence fit 10/10 ↑ Reproduced both exact failure modes described in the Copilot review comments.

Simplify required PR checks by making verify the single gate while retaining selective execution of expensive checks.

The always-running PR workflow detects changes with Git, calls the existing checks as reusable workflows, and verifies that selected checks succeeded and unselected checks were skipped. Main-branch pushes continue to use native path filters; the PR routing rules must be kept in sync with them. Markdownlint runs on every PR, and Playwright now runs for relevant PRs targeting any branch, not just main.

Removes the dorny/paths-filter dependency. After merging, configure verify as the required PR check.

Replace dorny/paths-filter with git-based change detection in a new
verify.yml workflow that calls the existing workflows as reusable
workflows. The final verify job always runs and fails unless every
selected check succeeded and every unselected check was skipped, so it
can be the only required status check. Push builds on main keep native
paths filters.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 23:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The workflow can pass without MAUI validation because rename detection omits deleted source paths and quoted non-ASCII or control-character paths evade its routing filters.

2 open issues
What changed in this PR

Centralizes pull-request validation behind a single required verify check while retaining selective execution of expensive checks.

Changes:

  • Adds Git-based change detection and a final gate that checks selected and skipped job results.
  • Converts existing checks to reusable workflows and removes dorny/paths-filter.
  • Keeps Markdownlint on every PR, extends relevant Playwright runs to all target branches, and preserves main-branch push filters.
File Description
.github/​workflows/​verify.yml Adds change routing, reusable-workflow calls, and the final required gate.
.github/​workflows/​pr-validation.yml Makes build/test validation reusable and removes local PR routing.
.github/​workflows/​pr-validation-maui.yml Makes MAUI validation reusable and removes local PR routing.
.github/​workflows/​playwright.yml Delegates PR execution and branch selection to the central workflow.
.github/​workflows/​markdownlint.yml Makes Markdownlint callable by the central workflow for every PR.

Review effort: Balanced

Comment thread .github/workflows/verify.yml Resolved
Comment thread .github/workflows/verify.yml Resolved
Use NUL-delimited git diff output with rename detection disabled so routing includes deleted paths and handles filenames Git would otherwise quote. Match each path as a record when selecting web and MAUI validation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@DamianEdwards
DamianEdwards merged commit 3c6e531 into main Nov 24, 2026
7 checks passed
@DamianEdwards
DamianEdwards deleted the damianedwards-pr-check-verification branch November 24, 2026 23:49
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.

3 participants