-
Notifications
You must be signed in to change notification settings - Fork 765
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
resource/github_repository: Allow setting default_branch
to master
on creation
#150
Conversation
@radeksimko could I get a review on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ctrom
thanks for the PR.
I have basically two notes/questions:
- Can we instead make this work by calling
Update()
function right after creation? We do this in many other providers for the same reason (when certain attributes can only be updated, but not passed during creation). - Can we test this via an acceptance test?
|
This PR would be a big help. This PR would enable me to do so. Then in the place where I use the module, I could start with |
@ewoutp Your situation sounds just like mine. Unfortunately, I don't know enough about golang to finish this quickly and can't take the time right now to learn it. Maybe someone else would be able to take a stab at it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ctrom and thanks for the PR! It LGTM but needs a test in order to make sure things work. I hope you don't mind, but I went on and added a test so we can get this merged 😄
default_branch
to master
on creation
…tegrations#150) * resource/github_repository: Allow setting default branch to master for new repo * Adds test to validate repository can be set to master as default upon creation
Fixes #146.