github / gh-classroom

GitHub Classroom CLI Extension is a powerful and easy-to-use command line tool that enhances the functionality of the GitHub CLI, specifically tailored for educators using GitHub Classroom.
MIT License
82 stars 13 forks source link

Ability to clone repos with the last commit before the deadline #16

Open nuke-web3 opened 1 year ago

nuke-web3 commented 1 year ago

Recently classrooms updated too support a hard deadline so assignments can move to read-only post deadline.

If you don't want to enforce this, but still want a snapshot of the state of all repos just before the dealine, you must introspect the commits once cloned and checkout appropriately to that commit.

I want an option to checkout a single commit (#15) that is the last before the deadline, or another option to default to the latest commit.