Skip to content

Commit 7187dcb

Browse files
committed
Fix to use tree commit
1 parent be9b4ad commit 7187dcb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ghrn/ghrn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func BuildReleaseNotes(ctx context.Context, w io.Writer, conf Config) error {
7373
// new commits from latest release to default branch
7474
var newCommits []string
7575
for _, commit := range comp.Commits {
76-
newCommits = append(newCommits, commit.GetSHA())
76+
newCommits = append(newCommits, commit.GetCommit().GetTree().GetSHA())
7777
}
7878

7979
// Iterate over all PRs
@@ -98,7 +98,7 @@ func BuildReleaseNotes(ctx context.Context, w io.Writer, conf Config) error {
9898
}
9999
var prCommits []string
100100
for _, commit := range commits {
101-
prCommits = append(prCommits, commit.GetSHA())
101+
prCommits = append(prCommits, commit.GetCommit().GetTree().GetSHA())
102102
}
103103

104104
if conf.StopAtLatestRelease && !any(prCommits, newCommits) {

0 commit comments

Comments
 (0)