Skip to content

Feat: add allowMergeableBypassForPrApply to organization policy#1081

Open
RLRabinowitz wants to merge 2 commits intomainfrom
feat/allow-mergeable-bypass-for-pr-apply
Open

Feat: add allowMergeableBypassForPrApply to organization policy#1081
RLRabinowitz wants to merge 2 commits intomainfrom
feat/allow-mergeable-bypass-for-pr-apply

Conversation

@RLRabinowitz
Copy link
Contributor

@RLRabinowitz RLRabinowitz commented Feb 22, 2026

Issue & Steps to Reproduce / Feature Request

Add support for the new allowMergeableBypassForPrApply boolean field on the organization policy API. This allows organizations to bypass the PR mergeability check for env0/Apply status checks on GitHub.

Solution

  • Added AllowMergeableBypassForPrApply to Organization struct and OrganizationPolicyUpdatePayload struct in client/organization.go
  • Added allow_mergeable_bypass_for_pr_apply schema entry to the env0_organization_policy resource (TypeBool, Optional, defaults to false)
  • Updated unit tests in both client/organization_test.go and env0/resource_organization_policy_test.go
  • Regenerated mock

Copy link
Contributor

@Yossi-kerner Yossi-kerner left a comment

Choose a reason for hiding this comment

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

LGTM

@yarivg yarivg assigned RLRabinowitz and unassigned RLRabinowitz Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants