Skip to content

Add support to Allow specified actors to bypass pull request requirements #1005

Closed

Description

@jtyr

The provider is missing option to "Allow specified actors to bypass pull request requirements" in the branch protection rule settings.

# Settings -> Branches -> <ProtectionRule> -> Protect matching branches:

|X| Require a pull request before merging
    |X| Allow specified actors to bypass pull request requirements
        <ListOfTeamsOrUsers>

Activity

  1. jtyr commented on Dec 8, 2021

    @jtyr
    ContributorAuthor

    There is no support for this in the google/go-github package and neither this feature is documented in the official GitHub REST API 😞

  2. majormoses commented on Dec 11, 2021

    @majormoses
    Contributor

    It looks like they added support for it in GraphQL API: https://docs.github.com/en/graphql/reference/input-objects#updatebranchprotectionruleinput it looks as if we need to pass bypassPullRequestActorIds with an array of ids.

  3. jtyr commented on Dec 14, 2021

    @jtyr
    ContributorAuthor

    As soon as the githubv4 package supports this feature, we will be able to add it into this provider. I guess the author of githubv4 must regenerate the code from the latest GitHub GraphQL schema.

  4. jtv8 commented on Apr 6, 2022

    @jtv8
  5. chenshap commented on Apr 10, 2022

    @chenshap
  6. github-actions commented on Jan 6, 2023

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  7. added
    Status: Stale
    on Jan 6, 2023
  8. kfcampbell commented on Jan 6, 2023

    @kfcampbell
    Contributor

    I'm going to close this issue as pull request bypassers are implemented in the non-v3 resource. @chenshap it's still an outstanding need to add this functionality to the v3 version of the resource, though it's still not available in google/go-github. It is, however, exposed in the REST API. Please feel free to create another issue to track that work if you'd like!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleType: Featurer/branch_protection

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions