Description
There seems to be an assumption in the code on how releases are structured.
The code at gitlab.go:324 assumes that rel.Assets.Links and rel.Assets.Sources have the same length, but they don't always match in GitLab's API response.
See an example in my public repo here: https://gitlab.com/unboundsoftware/schemas/-/releases
The releases are created by GoReleaser and have 4 sources and 7 links.
Gitea Version
1.25.3
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://gist.github.com/argoyle/b56eebdad18c3f7d85125a00dd3af947
Screenshots
No response
Git Version
2.49.1
Operating System
gitea-rootless Docker image
How are you running Gitea?
Kubernetes deployment using the gitea-rootless image
Database
PostgreSQL
Description
There seems to be an assumption in the code on how releases are structured.
The code at gitlab.go:324 assumes that rel.Assets.Links and rel.Assets.Sources have the same length, but they don't always match in GitLab's API response.
See an example in my public repo here: https://gitlab.com/unboundsoftware/schemas/-/releases
The releases are created by GoReleaser and have 4 sources and 7 links.
Gitea Version
1.25.3
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://gist.github.com/argoyle/b56eebdad18c3f7d85125a00dd3af947
Screenshots
No response
Git Version
2.49.1
Operating System
gitea-rootless Docker image
How are you running Gitea?
Kubernetes deployment using the gitea-rootless image
Database
PostgreSQL