-
Notifications
You must be signed in to change notification settings - Fork 25
Implement exercise T6L2/ff-undo #101
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
base: main
Are you sure you want to change the base?
Conversation
woojiahao
left a comment
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.
Left some comments, the structure for autograding makes sense, but could be improved
ff_undo/verify.py
Outdated
| has_birdperson = any("Add Birdperson" in msg for msg in commit_messages_in_others) | ||
| has_cyborg = any("Add Cyborg to birdperson.txt" in msg for msg in commit_messages_in_others) | ||
| has_tammy = any("Add Tammy" in msg for msg in commit_messages_in_others) | ||
| if len(commit_messages_in_others) != 6 or not (has_birdperson and has_cyborg and has_tammy): |
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.
A little OOTL, but why is this check for 6, not 3?
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.
When retrieving commits from the others branch, it also includes the commits from main that existed before the branch was created. Therefore, the total number of commits is 5 instead of 3 (since I deleted the first tag, it now counts as 5).
Exercise Review
Exercise Discussion
#89
Checklist
Git-Masteryorganization, have you created a request for it?repo-smithto validate the exercise grading scheme?test-download.sh?git-autograder?app?