Support publishing packages with repository links #12336

Closed
opened 2025-11-02 10:06:02 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @Renari on GitHub (Jan 15, 2024).

Feature Description

Currently if you follow:
https://docs.gitea.com/usage/packages/maven

It suggests you publish packages to:
https://gitea.example.com/api/packages/{owner}/maven

This publishes packages at the user/org level and does not make an association with the underlying repository, you must go to:
https://gitea.example.com/{owner}/-/packages/maven/{publication-name}/settings

And set the repository link manually, this can become very tedious, I suggest being able to publish to another URL to automatically create these repository links.

https://gitea.example.com/api/packages/{owner}/{repo}/maven

Could create the same publication but automatically create the repo link, thus preventing the manual step.

It looks like Github manages this quite differently than Gitea does:
https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-gradle#publishing-packages-to-github-packages

But similarly to the above does have the repo name in the publication endpoint.

Screenshots

No response

Originally created by @Renari on GitHub (Jan 15, 2024). ### Feature Description Currently if you follow: https://docs.gitea.com/usage/packages/maven It suggests you publish packages to: https://gitea.example.com/api/packages/{owner}/maven This publishes packages at the user/org level and does not make an association with the underlying repository, you must go to: https://gitea.example.com/{owner}/-/packages/maven/{publication-name}/settings And set the repository link manually, this can become very tedious, I suggest being able to publish to another URL to automatically create these repository links. https://gitea.example.com/api/packages/{owner}/{repo}/maven Could create the same publication but automatically create the repo link, thus preventing the manual step. It looks like Github manages this quite differently than Gitea does: https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-gradle#publishing-packages-to-github-packages But similarly to the above does have the repo name in the publication endpoint. ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 10:06:02 -06:00
Author
Owner

@Renari commented on GitHub (Jan 15, 2024):

duplicate of: #21062

@Renari commented on GitHub (Jan 15, 2024): duplicate of: #21062
Author
Owner

@github-actions[bot] commented on GitHub (Mar 1, 2024):

Automatically locked because of our CONTRIBUTING guidelines

@github-actions[bot] commented on GitHub (Mar 1, 2024): Automatically locked because of our [CONTRIBUTING guidelines](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md#issue-locking)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12336