Skip to content

Support publishing packages with repository links #28808

Closed
@Renari

Description

@Renari

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions