`probot-archive-repo`
From a conversation I had with @JasonEtco:
Quick, someone make a Probot App that adds a verbose “This repo is deprecated” message to the README when a repo is ~deprecated~ archived.
Yeah I bet a
probot-archive-repothat auto closes all open issues and PRs with a descriptive comment, finds package dependencies’ repos and opens an issue in each one, updates the README, and then archives the repo (if and when there’s an API for it?) would be pretty cool.
there is an API for it already, even has webhooks
Note sure it is possible: when the repo is archived, it becomes read-only. So the app would have to perform all these actions before the repo gets archived AFAIK.
That's a fair point @stof - I guess we'd have a have a different way of archiving it via the API, instead of via the UI. Like by adding an [ARCHIVED] bit to the description or something, which would trigger the steps-to-archiving and the eventual archiving.