probot / ideas

Share ideas for new GitHub Apps built with Probot
96 stars 48 forks source link

`probot-archive-repo` #15

Open jarrodldavis opened 6 years ago

jarrodldavis commented 6 years ago

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-repo that 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

stof commented 6 years ago

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.

JasonEtco commented 6 years ago

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.