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

x/pkgsite: handle packages from an archived repo specially #41126

Open
jba opened this issue Aug 29, 2020 · 2 comments
Open

x/pkgsite: handle packages from an archived repo specially #41126

jba opened this issue Aug 29, 2020 · 2 comments
Labels
FeatureRequest NeedsInvestigation pkgsite

Comments

@jba
Copy link
Contributor

@jba jba commented Aug 29, 2020

If a repo has been archived (as described for GItHub here), we should reduce its search rank, and add an indicator to its pages.

@jba jba added NeedsInvestigation FeatureRequest pkgsite labels Aug 29, 2020
@gopherbot gopherbot added this to the Unreleased milestone Aug 29, 2020
@myitcv
Copy link
Member

@myitcv myitcv commented Aug 29, 2020

Somewhat related to #40357

@julieqiu julieqiu removed this from the Unreleased milestone Aug 31, 2020
@julieqiu julieqiu added this to the pkgsite/unplanned milestone Aug 31, 2020
@julieqiu julieqiu removed the website label Sep 19, 2020
@julieqiu julieqiu removed the website label Sep 19, 2020
@BenjamenMeyer
Copy link

@BenjamenMeyer BenjamenMeyer commented Jun 28, 2022

This might be easier than #41126 (comment) since GitHub allows a repository to be marked as an archive, the integration with GitHub should be able to detect that the owner archived it.
Indeed, the GetRepository API call to GitHub (https://docs.github.com/en/rest/repos/repos#get-a-repository) has an archived attribute on the result, which also shows up in https://docs.github.com/en/rest/repos/repos#list-organization-repositories.

Seems like the mechanics for updating the data in pkg.go.dev should be able to easily detect this flag being set and put up a notice like GitHub does regarding archived repositories:
Screen Shot 2022-06-28 at 4 53 40 PM

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

No branches or pull requests

5 participants