Skip to content

Add ability to opt out of listing branches in github_repository #1010

@k24dizzle

Description

@k24dizzle

Related to #892

Affected Resource(s)

Please list the resources as a list, for example:

  • github_repository

I started seeing the branches being listed for repos in the terraform plan output, with the introduction of version 4.19.0

Screen Shot 2021-12-14 at 11 24 32 AM

Would it be possible to introduce a way to opt out of this behavior (where branches are managed by the github_repository resource)?

There are repos we manage with the github provider that have 100s or even 1000s of branches, so I want to avoid cases where:

  • the plan output is unreadable and cluttered with github branches
  • it would be unnecessary for us to list every single branch (making hundreds of Github API calls) and store it in the terraform state as we don't even take advantage of this functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: PinnedA way to keep old or long lived issues aroundStatus: Up for grabsIssues that are ready to be worked on by anyoneType: FeatureNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions