From dbeb049409f0ee601f5bb1d4d33d0df86b64003b Mon Sep 17 00:00:00 2001 From: Alex Unger Date: Sun, 7 Jun 2020 19:01:18 +0200 Subject: [PATCH] Update function name (#1553) --- example/commitpr/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/commitpr/main.go b/example/commitpr/main.go index 2c7ff213d9b..13f9dc35311 100644 --- a/example/commitpr/main.go +++ b/example/commitpr/main.go @@ -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)