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

Add AllowUpdateBranch to the Repository definition #2312

Closed
MarkRosemaker opened this issue Mar 5, 2022 · 0 comments
Closed

Add AllowUpdateBranch to the Repository definition #2312

MarkRosemaker opened this issue Mar 5, 2022 · 0 comments

Comments

@MarkRosemaker
Copy link
Contributor

MarkRosemaker commented Mar 5, 2022

I noticed that I can edit all the settings for a repository via the API except the setting:

Always suggest updating pull request branches
Whenever there are new changes available in the base branch, present an “update branch” option in the pull request.

After some searching, if found that even though it's not documented yet, there is an allow_update_branch field in the REST Repo API. (h/t to @pmjacinto for the suggestion.)

I verified this by adding the field to my fork and making an edit request to one of my repositories.
Please see: #2313

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

No branches or pull requests

1 participant