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

Fix update default branch #719

Merged
merged 2 commits into from
Mar 16, 2021

Conversation

tibbes
Copy link
Contributor

@tibbes tibbes commented Mar 4, 2021

This PR fixes the logic for when changes to default_branch on github_repository should be applied (for those that haven't upgraded to github_default_branch yet).

Closes #715

tibbes added 2 commits March 4, 2021 13:51
Special-casing "main" in the previous version of this code meant that it
was impossible to change the default branch to "main" from something
else (e.g. "master").
@jcudit jcudit added this to the v4.6.0 milestone Mar 8, 2021
@jcudit jcudit self-assigned this Mar 16, 2021
@jcudit jcudit merged commit 0f74e38 into integrations:master Mar 16, 2021
k24dizzle pushed a commit to lyft/terraform-provider-github that referenced this pull request Mar 16, 2021
* Test changing default_branch from/to main

* Fix updating default_branch on github_repository

Special-casing "main" in the previous version of this code meant that it
was impossible to change the default branch to "main" from something
else (e.g. "master").
@tibbes tibbes deleted the fix-update-default-branch branch March 17, 2021 21:43
kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
* Test changing default_branch from/to main

* Fix updating default_branch on github_repository

Special-casing "main" in the previous version of this code meant that it
was impossible to change the default branch to "main" from something
else (e.g. "master").
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 this pull request may close these issues.

default_branch updates not reflected in UI
2 participants