Skip to content

Commit

Permalink
Update function name (#1553)
Browse files Browse the repository at this point in the history
  • Loading branch information
refs committed Jun 7, 2020
1 parent 2c8de65 commit dbeb049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/commitpr/main.go
Expand Up @@ -122,7 +122,7 @@ func getFileContent(fileArg string) (targetName string, b []byte, err error) {
return targetName, b, err
}

// createCommit creates the commit in the given reference using the given tree.
// pushCommit creates the commit in the given reference using the given tree.
func pushCommit(ref *github.Reference, tree *github.Tree) (err error) {
// Get the parent commit to attach the commit to.
parent, _, err := client.Repositories.GetCommit(ctx, *sourceOwner, *sourceRepo, *ref.Object.SHA)
Expand Down

0 comments on commit dbeb049

Please sign in to comment.