Skip to content

Commit

Permalink
Fix examples project to use github.Timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieleet committed Jan 26, 2023
1 parent 5ae8401 commit d65736f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/commitpr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func pushCommit(ref *github.Reference, tree *github.Tree) (err error) {

// Create the commit using the tree.
date := time.Now()
author := &github.CommitAuthor{Date: &date, Name: authorName, Email: authorEmail}
author := &github.CommitAuthor{Date: &github.Timestamp{date}, Name: authorName, Email: authorEmail}
commit := &github.Commit{Author: author, Message: commitMessage, Tree: tree, Parents: []*github.Commit{parent.Commit}}
newCommit, _, err := client.Git.CreateCommit(ctx, *sourceOwner, *sourceRepo, commit)
if err != nil {
Expand Down

0 comments on commit d65736f

Please sign in to comment.