From d7f8f2c97eeb2de8c6561ec36cc48a4668fb67c9 Mon Sep 17 00:00:00 2001 From: magodo Date: Wed, 17 Mar 2021 10:29:18 +0800 Subject: [PATCH] `github_repository_file` - Fix creation crash --- github/resource_github_repository_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/resource_github_repository_file.go b/github/resource_github_repository_file.go index ec38c53de2..1203f3a018 100644 --- a/github/resource_github_repository_file.go +++ b/github/resource_github_repository_file.go @@ -204,7 +204,7 @@ func resourceGithubRepositoryFileCreate(d *schema.ResourceData, meta interface{} } d.SetId(fmt.Sprintf("%s/%s", repo, file)) - d.Set("commit", create.Commit.GetSHA()) + d.Set("commit_sha", create.Commit.GetSHA()) return resourceGithubRepositoryFileRead(d, meta) }