Skip to content

Commit

Permalink
Use last commit for target
Browse files Browse the repository at this point in the history
  • Loading branch information
hassansin committed Jul 11, 2018
1 parent 8ce57a7 commit 09f411d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func do() error {
release := &github.RepositoryRelease{
Name: &title,
TagName: &tagName,
TargetCommitish: compare.Commits[len(compare.Commits)].SHA,
TargetCommitish: compare.Commits[len(compare.Commits)-1].SHA,
Body: &body,
}
release, _, err = client.Repositories.CreateRelease(ctx, owner, repo, release)
Expand Down

0 comments on commit 09f411d

Please sign in to comment.