apricote / releaser-pleaser

Automate versioning and changelog management for GitHub and GitLab projects.
https://apricote.github.io/releaser-pleaser/
GNU General Public License v3.0
3 stars 1 forks source link

fix(gitlab): release not created when release pr was squashed #86

Closed apricote closed 3 weeks ago

apricote commented 3 weeks ago

When the release pull request was squashed on GitLab, the release creation fails with error

Error: failed to create pending releases: pull request is missing the merge commit

This fixes the problem by checking both MergeCommitSHA and SquashCommitSHA and using whichever is set.

codecov-commenter commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 24.19%. Comparing base (763018f) to head (abea112). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/forge/gitlab/gitlab.go 0.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #86 +/- ## ========================================== - Coverage 24.94% 24.19% -0.75% ========================================== Files 22 22 Lines 1311 1645 +334 ========================================== + Hits 327 398 +71 - Misses 965 1228 +263 Partials 19 19 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.