Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to detect a repository transfer? #590

Open
jamietanna opened this issue Jul 9, 2024 · 1 comment
Open

Is there any way to detect a repository transfer? #590

jamietanna opened this issue Jul 9, 2024 · 1 comment

Comments

@jamietanna
Copy link

While digging into https://gitlab.com/tanna.dev/dependency-management-data/-/issues/599 I noticed that DMD, which uses Ecosyste.ms doesn't detect a Buidlkite plugin correctly (more info: ecosyste-ms/packages#816).

When looking at the package https://github.com/chronotc/monorepo-diff-buildkite-plugin, via https://packages.ecosyste.ms/api/v1/packages/lookup?purl=pkg:github/chronotc%2Fmonorepo-diff-buildkite-plugin we can see some GitHub metadata for the repo.

What's interesting is that if you load https://github.com/chronotc/monorepo-diff-buildkite-plugin you'll see that the repo has been transferred between orgs.

(This repo has also been at monebag/monorepo-diff in the past)

Is there any way to surface this information in Ecosyste.ms?

@andrew
Copy link
Member

andrew commented Jul 9, 2024

The repos service has a concept of previous_names which get recorded when a name change is detected, see https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adikari%2Fmonorepo-diff-buildkite-plugin it's got the previous name listed.

https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronotc%2Fmonorepo-diff-buildkite-plugin also redirects to the correct name.

When it comes to looking up by purl of the previous package name, I'm not sure what the best defined behaviour should be there, as the name happens to look like a url, but it's tricky to know how each package manager handles it.

Do you know how go proxy handles redirects and renames?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants