Skip to content

Conversation

@seemethere
Copy link
Collaborator

Extends ghstack land with merge rules validation:

CLI options:

  • --validate-rules: Validate PRs against .github/merge_rules.yaml
  • --dry-run: Validate without actually merging
  • --comment-on-failure: Post validation errors as PR comments

The validation happens before any git operations:

  1. Load merge rules from repository
  2. For each PR in the stack, validate approvers and CI checks
  3. If any PR fails validation, abort with detailed error
  4. Optionally post error details as a PR comment

Example usage:
ghstack land --validate-rules --comment-on-failure <PR_URL>

[ghstack-poisoned]
@seemethere
Copy link
Collaborator Author

seemethere commented Jan 27, 2026

[ghstack-poisoned]
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