Skip to content

fix: support pull request from rulesets#15

Merged
gusfcarvalho merged 1 commit into
masterfrom
gc-fix-pull-request-from-rulesets
May 13, 2026
Merged

fix: support pull request from rulesets#15
gusfcarvalho merged 1 commit into
masterfrom
gc-fix-pull-request-from-rulesets

Conversation

@gusfcarvalho
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copilot AI review requested due to automatic review settings May 13, 2026 14:25
@gusfcarvalho gusfcarvalho merged commit ccc5d01 into master May 13, 2026
4 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the plugin’s “effective branch rules” evidence model to include pull request–related ruleset requirements, so downstream policy evaluation can reason about review requirements derived from GitHub rulesets.

Changes:

  • Extend BranchRuleEvidence with pull request review-related fields (approving review count, stale review dismissal, code owner review requirement).
  • Aggregate pull request rule parameters from github.BranchRules.PullRequest when building effective branch rule evidence.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
types.go Adds new pull request review-related fields to the branch rules evidence JSON payload.
repository_controls.go Populates the new evidence fields by aggregating values across pull request rules returned by the GitHub API.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread types.go
Comment on lines +106 to +107
DismissStaleReviewsOnPush bool `json:"dismiss_stale_reviews_on_push,omitempty"`
RequireCodeOwnerReview bool `json:"require_code_owner_review,omitempty"`
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