-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Description
Describe the feature or problem you’d like to solve
Our technical oversight committee (TOC) would like to better identify, notify and make requests to our user community when one of our third party artifacts has been archived by its maintainer. An artifact is tied to a repo. Knowing that an artifact has been archived is insufficient since it does not mean the artifact is useless The user community should know when it was archived so they can make their own decision if some other person wants to start maintaining the artifact for the general community, stop using the artifact or make their own fork for the artifact. The TOC also want to display and sort by the archive timestamp when displaying the various artifacts on web pages.
As an artifact ages, the TOC can make requests to the community if they believe the artifact should continue being maintained or even dropped.
The GH command has most of of the information we need to automate this process, but it was missing the archived timestamp.
Proposed solution
When you go to the home page of an archived repo, the date is displayed when the repo was archived. We would like to retrieve that same date through the GH command. The same useful information displayed on the repo's main page would also be available through the GH command.
Currently we can retrieve the archive status using the json variable isArchived.
gh repo view --json isArchived <repo>
The proposed solution would be to add a new variable for the archive timestamp.
gh repo view --json isArchived,archivedAt <repo>