Skip to content

npm registry package metadata endpoint should return repository field #23444

Closed
@viceice

Description

@viceice

Description

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

return &npm_module.PackageMetadata{
ID: latest.Package.Name,
Name: latest.Package.Name,
DistTags: distTags,
Description: metadata.Description,
Readme: metadata.Readme,
Homepage: metadata.ProjectURL,
Author: npm_module.User{Name: metadata.Author},
License: metadata.License,
Versions: versions,
}

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions