Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pull Requests] less Always suggest updating pull request branches avariable for the repository. #1072

Closed
sungaohui opened this issue Feb 23, 2022 · 2 comments · Fixed by #1143

Comments

@sungaohui
Copy link

Hi,
I'd like to request the resource for github-repository less Always suggest updating pull request branches.
https://docs.github.com/en/enterprise-cloud@latest/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-suggestions-to-update-pull-request-branches

Terraform Version

The latest version

Affected Resource(s)

  • resource_github_repository
@pmjacinto
Copy link

Also interested in having this.

It doesn't seem to be documented yet, but there is an allow_update_branch field in the REST Repo API.

gh api -X PATCH --raw-field allow_update_branch=true repos/my-org/my-repo

@strantalis
Copy link
Contributor

I was looking for the ability to set this the other day so I opened up a pull request to add it but it needs to wait on #1138 as that is when the feature was added.

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 a pull request may close this issue.

3 participants