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
75 stars 12 forks source link

`--per-page N` to get all students fails for large N #54

Open nuke-web3 opened 8 months ago

nuke-web3 commented 8 months ago
          You can use the `--per-page` and `--page` flags of `clone student-repos` to pull more than 30 assignments per page and view other pages! Another user is also working on a `clone-all` option that should be coming soon!

Originally posted by @RyanHecht in https://github.com/github/gh-classroom/issues/12#issuecomment-1719538429

Sadly trying to get all pages for something over about 100 students fails with:

gh classroom clone student-repos --per-page 199 --directory /tmp/grading

HTTP 500: Server Error (https://api.github.com/assignments/.../accepted_assignments?page=1&per_page=199)

Is there any progress on a clone and pull for all students?