Skip to content

Add support for configuring checks to branch protection #985

Closed as not planned

Description

@jtgrohn

Affected Resource(s)

Please list the resources as a list, for example:

  • github_branch_protection
  • github_branch_protection_v3

Description

The GitHub API supports setting up checks as well as contexts for branch protection. checks provide a few more configuration options (like enforcing that a check is set by a specific app)

image

Could you add support to the github_branch_protection and github_branch_protection_v3 resources to configure checks? Currently they only support contexts

Thanks

Activity

  1. k24dizzle commented on Jan 27, 2022

    @k24dizzle
    Contributor

    I took a look at this and I believe go-github doesn't support this field yet either. So we'd have to wait for them to implement it first before we can add this to terraform provider. Created an issue in the go-github repo for this here:
    google/go-github#2274

  2. zacharymelancon commented on Mar 30, 2022

    @zacharymelancon

    google/go-github#2276 @k24dizzle It looks like checks was added to go-github since your last comment.

  3. k24dizzle commented on Mar 30, 2022

    @k24dizzle
    Contributor

    Yeah so this is where I left off with this: #1051
    Now that it is in go-github, we could pick this work up again

  4. bombelme commented on Nov 10, 2022

    @bombelme

    @k24dizzle are you planning to continue working on this?

  5. TheQueenIsDead commented on Dec 7, 2022

    @TheQueenIsDead
    Contributor

    I have tried to kick a PR off to support this in #1415, though it looks like Github does some interesting things in the back-end (Returning a list of contexts when only checks were provided). If anyone with more experience developing plugins would like to chime in / extend this work I'd be more than happy for the help 🙏

    Just want to be able to define protections again 🥲

  6. added
    Status: Up for grabs
    on Dec 8, 2022
  7. github-actions commented on Apr 21, 2024

    @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!

  8. added
    Status: Stale
    on Apr 21, 2024
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: StaleStatus: Up for grabsType: Featurer/branch_protection

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions