npm registry package metadata endpoint should return repository field #10425

Closed
opened 2025-11-02 09:07:05 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @viceice on GitHub (Mar 13, 2023).

Originally assigned to: @Zettat123 on GitHub.

Description

Looks like this function doesn't return the repository field, so it's empty insite reponses

757b4c17e9/routers/api/packages/npm/api.go (L38-L48)

Would be nice to return the repository url, so bots like renovate can use that to find the source repository.

Gitea Version

1.18.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Linux

How are you running Gitea?

docker uimage via official helm chart

Database

PostgreSQL

Originally created by @viceice on GitHub (Mar 13, 2023). Originally assigned to: @Zettat123 on GitHub. ### Description Looks like this function doesn't return the `repository` field, so it's empty insite reponses https://github.com/go-gitea/gitea/blob/757b4c17e900f1d11a81bc9467d90e6c245ee8f2/routers/api/packages/npm/api.go#L38-L48 Would be nice to return the repository url, so bots like renovate can use that to find the source repository. ### Gitea Version 1.18.5 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Linux ### How are you running Gitea? docker uimage via official helm chart ### Database PostgreSQL
GiteaMirror added the topic/packagestype/enhancement labels 2025-11-02 09:07:05 -06:00
Author
Owner

@viceice commented on GitHub (Mar 17, 2023):

thank you for fast resolve 💖

@viceice commented on GitHub (Mar 17, 2023): thank you for fast resolve 💖
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10425