Invalid defaults for merge_commit_message
, merge_commit_title
#1541
Labels
hacktoberfest
Issues for participation in Hacktoberfest
Status: Stale
Used by stalebot to clean house
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
I run
terraform import
on a github repository with ☑️ Allow Merge Commits and set to "Default to pull request title and description".Pulling out the resulting state into my
main.tf
:No changes when running
terraform apply
.Now, I would like to disable merge commits, so I set
allow_merge_commit
tofalse
and removemerge_commit_message
andmerge_commit_title
:And I get the following output, which tells me that somehow the defaults for the message and title fields are wrong.
Plan:
Apply:
I thought it was a little odd that the value for
merge_commit_message
wanted to update"PR_BODY" -> "PR_TITLE"
and likewise
merge_commit_title
to"PR_BODY" -> "MERG_MESSAGE"
. It looks like someone confused those two defaults? I went looking and found the go-client is confused as well:https://github.com/google/go-github/blob/master/github/repos.go#L75
Regardless, this provider should not attempt to re-set these two fields at the same time as disabling merge commits altogether.
The text was updated successfully, but these errors were encountered: