Skip to content

Conversation

@samcoe
Copy link
Contributor

@samcoe samcoe commented Jun 30, 2021

This makes adding the branchProtectionRule fragment to the PR graphQL queries conditional on the PR having the HasBranchProtectionRule feature. This used to be the behavior but was changed in #3804, so this PR just changes it back.

Fixes #3919

@jgold-stripe
Copy link
Contributor

Cool! Thanks for the quick look. FWIW I just built the https://github.com/cli/cli/tree/fix-branch-protection branch locally and it works again, so feeling positive :)

@vilmibm vilmibm merged commit 717c91c into trunk Jun 30, 2021
@samcoe samcoe deleted the fix-branch-protection branch June 30, 2021 23:01
@AadityaGala
Copy link

Thank you for looking into this and solving the issue!

@SaavyGirl

This comment was marked as spam.

@mohsen102

This comment was marked as spam.

@mohsen102

This comment was marked as spam.

@anon-gif anon-gif mentioned this pull request Jul 6, 2021
Copy link

@Hbutlercapone Hbutlercapone left a comment

Choose a reason for hiding this comment

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

Fixed bug #3922

Copy link

@jefferycline1 jefferycline1 left a comment

Choose a reason for hiding this comment

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

😀

@gustisamba

This comment was marked as spam.

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.

gh v1.12.0: GraphQL error: Field 'branchProtectionRule' doesn't exist on type 'Ref'

9 participants