Skip to content

Commit

Permalink
fix: github now requires explicit make_latest=true on create
Browse files Browse the repository at this point in the history
  • Loading branch information
msvticket committed Oct 31, 2024
1 parent 4b6f912 commit 37f223c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scm/driver/github/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ func (s *releaseService) Create(ctx context.Context, repo string, input *scm.Rel
Prerelease: input.Prerelease,
Tag: input.Tag,
}
if !(in.Prerelease || in.Draft) {
in.MakeLatest = "true"
}
out := new(release)
res, err := s.client.do(ctx, "POST", path, in, out)
return convertRelease(out), res, err
Expand Down

0 comments on commit 37f223c

Please sign in to comment.