Skip to content

feat(ng-dev/pr): support auto-merging pull requests once pending status checks pass#3661

Open
josephperrott wants to merge 1 commit into
angular:mainfrom
josephperrott:wait-on-validation
Open

feat(ng-dev/pr): support auto-merging pull requests once pending status checks pass#3661
josephperrott wants to merge 1 commit into
angular:mainfrom
josephperrott:wait-on-validation

Conversation

@josephperrott
Copy link
Copy Markdown
Member

Enables the ng-dev pr merge command to wait on non-final pending status validations (such as running CI workflows) to complete rather than aborting immediately. Includes interactive progress feedback and bounded timeout handling.

@josephperrott josephperrott added the action: merge The PR is ready for merge by the caretaker label May 12, 2026
@josephperrott josephperrott requested a review from alan-agius4 May 12, 2026 19:12
@angular-robot angular-robot Bot added the detected: feature PR contains a feature commit label May 12, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a mechanism to wait for pending pull request validations before merging, adding a new --wait-for-validations CLI flag and a polling loop that re-fetches PR data. The implementation includes an isFinal property for validation failures to distinguish between transient and permanent issues. Feedback was provided to optimize the waiting logic; currently, the tool waits for pending validations even if final failures (like a rejected review) are already present. It is suggested to only trigger the wait loop if all current failures are non-final to prevent unnecessary delays.

Comment thread ng-dev/pr/common/validation/validate-pull-request.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant