Skip to content

Commit

Permalink
fix failing TestAccGithubRepositoryFile test
Browse files Browse the repository at this point in the history
access committer data through `Commit` struct
  • Loading branch information
Jeremy Udit committed Feb 9, 2021
1 parent f8648c9 commit 93cc48a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions github/resource_github_repository_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ func resourceGithubRepositoryFileRead(d *schema.ResourceData, meta interface{})
}

d.Set("commit_sha", commit.GetSHA())
d.Set("commit_author", commit.GetCommitter().GetName())
d.Set("commit_email", commit.GetCommitter().GetEmail())
d.Set("commit_author", commit.Commit.GetCommitter().GetName())
d.Set("commit_email", commit.Commit.GetCommitter().GetEmail())
d.Set("commit_message", commit.GetCommit().GetMessage())

return nil
Expand Down

0 comments on commit 93cc48a

Please sign in to comment.