Ability to clone repos with the last commit before the deadline

Open
#16 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start by reading issue #15 and tracing the repository cloning flow in the gh-classroom CLI. Determine how a hard deadline and the latest commit are represented, then define the option behavior for checking out the last commit before the deadline or retaining the latest commit. Done means cloning can select either snapshot behavior consistently.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Go
Stars
126
Forks
21
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/gh-classroom

All issues in github/gh-classroom

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.