Skip to content

Conversation

@seemethere
Copy link
Collaborator

Introduces a new merge_rules module that provides:

  • MergeRule dataclass for rule configuration (patterns, approvers, checks)
  • MergeRulesLoader to load rules from .github/merge_rules.yaml
  • MergeValidator to validate PRs against rules including:
    • File pattern matching (fnmatch/glob)
    • Approver validation with team expansion (org/team-slug)
    • CI check status validation
  • ValidationResult and MergeValidationError for error handling

Also adds new GitHub API methods to GitHubEndpoint:

  • get_pr_reviews, get_pr_files, get_check_runs
  • get_team_members, get_file_contents, post_issue_comment

Adds pyyaml dependency for YAML parsing.

[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