XX Commits to main link broken on releases #967

Closed
opened 2023-03-21 12:13:02 +01:00 by viceice · 13 comments
Image

https://codeberg.org/forgejo-contrib/forgejo-helm/releases/tag/v0.3.3

This works fine on Gitea v1.18.5 and v1.19.0, so must be a Forgejo / Codeberg issue.

The link wrongly targets https://codeberg.org/forgejo-contrib/forgejo-helm/compare/v0.3.3...

So main branch is missing somehow.

image

https://codeberg.org/forgejo-contrib/forgejo-helm/releases/tag/v0.3.3 This works fine on Gitea v1.18.5 and v1.19.0, so must be a Forgejo / Codeberg issue. The link wrongly targets `https://codeberg.org/forgejo-contrib/forgejo-helm/compare/v0.3.3...` So main branch is missing somehow. ![image](/attachments/c7b3c8a4-cde1-4536-becf-1f48b8d19a65)
Image
Author

image

![image](/attachments/8b2212cc-5042-4795-93f7-5b9c38985b16)
Image

Still present in Forgejo 1.19.1:
https://code.forgejo.org/forgejo/runner/releases

13 commits to since this release

The default branch bame name is missing between "to" and "since" and the link points to a 404.

Still present in Forgejo 1.19.1: https://code.forgejo.org/forgejo/runner/releases > 13 commits to since this release The default branch bame name is missing between "to" and "since" and the link points to a 404.
Image

I think I found the reason:

the release was created using woodpeckerci/plugin-gitea-release.

This woodpecker plugin does not set the Target field on the CreateReleaseOption struct.

Hence the release gets created with an empty target and the templates behave strangely.

I am quite sure this issue happens on gitea as well (but only for releases created via the API without a

I think I found the reason: the release was created using [`woodpeckerci/plugin-gitea-release`](https://codeberg.org/forgejo-contrib/forgejo-helm/src/commit/78f475de247ee691917f8ff1c53ab14072f63fea/.woodpecker/release-version.yml#L26). This woodpecker plugin does not set the [`Target` field](https://gitea.com/gitea/go-sdk/src/commit/6d1bcd107f2da909bdf92e511efa51049d0df919/gitea/release.go#L99) on the [`CreateReleaseOption` struct](https://codeberg.org/woodpecker-plugins/gitea-release/src/commit/305336f85dfa35fcdf5fed13fc1f83933b4dc8a8/release.go#L75-L81). Hence the release gets created with an empty target and the templates behave strangely. I am quite sure this issue happens on gitea as well (but only for releases created via the API without a
Image
Upstream issue: https://github.com/go-gitea/gitea/issues/24145
Image

Plugin pull merged

Plugin pull merged
Image
Owner

Marking this with the "Codeberg" label as this (EDIT: this only concerns Forgejo, still keeping the label) has been reported and fixed upstream. Will close this issue once this bug disappears from Codeberg.

Marking this with the "Codeberg" label as ~~this~~ (EDIT: this only concerns Forgejo, still keeping the label) has been reported *and* fixed upstream. Will close this issue once this bug disappears from Codeberg.
Image

This is only partially fixed:

  • the woodpecker plugin has been fixed (does it need a new release to be usable?), so future releases can specify the target
  • however forgejo is still broken when the target is empty - upstream issue, I plan to craft a PR soon, to fix previous releases
This is only partially fixed: - the woodpecker plugin has been fixed (does it need a new release to be usable?), so **future releases** can specify the `target` - however forgejo is still broken when the `target` is empty - [upstream issue](https://github.com/go-gitea/gitea/issues/24145), I plan to craft a PR soon, to fix **previous releases**
Image
Author

i think this is fixed in Gitea v1.19.2

i think this is fixed in Gitea [`v1.19.2`](https://github.com/go-gitea/gitea/releases/tag/v1.19.2) - https://github.com/go-gitea/gitea/pull/24197
Image

No, my previous comment is still up-to-date.

No, my previous comment is still up-to-date.
Image

(actually the screenshot of your second post is fixed - not the first one)

(actually the screenshot of your second post is fixed - not the first one)
Image

I just created a PR upstream: https://github.com/go-gitea/gitea/pull/24470

I just created a PR upstream: https://github.com/go-gitea/gitea/pull/24470
Image

Upstream PR has been merged into main.

I now need to backport it to 1.19.

Upstream PR has been merged into main. I now need to backport it to 1.19.
Image

backport has been merged into release/v1.19 upstream https://github.com/go-gitea/gitea/pull/24659

This should land in Forgejo after the next rebase + release.

backport has been merged into release/v1.19 upstream https://github.com/go-gitea/gitea/pull/24659 This should land in Forgejo after the next rebase + release.
Image fnetX closed this issue 2023-10-12 14:57:51 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#967
No description provided.