-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds graceful continue #73
Conversation
pkg/classroom/classroom.go
Outdated
@@ -57,6 +56,7 @@ type Classroom struct { | |||
|
|||
type GithubRepository struct { | |||
Id int `json:"id"` | |||
Name string `json:"name"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jalafel Spacing looks off here. Try running go fmt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took me a second to understand why we don't need the GithubRepository Name function, but I believe it's bc you changed the serializer so it's an accepted value. Anyway, looks good to me!
What are you trying to accomplish?
Fixes a bug where the
gh classroom clone student-repos
command would fail if any repositories could not be cloned and was due to an unhandled error. This PR adds a--verbose
flag to the command to enable verbose error output and gracefully continue cloning the remaining repositories if any fail.Closes: #69
What should reviewers focus on?
In addition, this PR abstracts the cloning of repositories to a separate function
utils.CloneRepository
to improve testability and maintainability.This PR also removes the
Name()
function fromacceptAssignment.Repository.Name()
and replaces it withacceptAssignment.Repository.Name
. On GitHub Classroom, I've opened a PR to update theRepo
serializer to include thename
attribute.