github-education-resources / teachers_pet

Command line tool to help teachers use GitHub in their classrooms
https://education.github.com/guide
MIT License
187 stars 74 forks source link

delete-repos command #105

Open efthym opened 9 years ago

efthym commented 9 years ago

It should help with managing a course with limited number of private repos by deleting and re-using repos, as discussed in education/teachers#28. It follows closely the create_repos action but deletes instead of creating. (could share code somehow)

I could not get this to work with username/password authentication. It only worked after creating a personal access token with a 'delete_repo' scope and using that token to login to Github.

tarebyte commented 9 years ago

@efthym, can you add specs for this feature?

I'd be more than happy to help you out as well, if you're not sure where to start.

efthym commented 9 years ago

I'm not sure where to start and my main work has caught up with me, so it could take a while...

meneguzzi commented 9 years ago

I second the need for this feature, but from a quick check of the existing proposed code, there seems to be an issue with Github's API preventing this from being done programmatically (perhaps as a safeguard). Is there anyone working on this at the moment?

PeterDaveHello commented 9 years ago

I think my code works fine.

meneguzzi commented 9 years ago

So, apologies for the ignorance here, but how do I merge this code to my current gem and start using the command?