-
Notifications
You must be signed in to change notification settings - Fork 25
Implement hands on hp-move-tags #111
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.
This is pending comments from @damithc on the initial hands-on discussion about whether we need to fork the repository. Other minor nits included
| """ | ||
| hp-move-tags (T4L2) | ||
| - Fork https://github.com/git-mastery/samplerepo-preferences to user account | ||
| - Clone the fork locally as 'samplerepo-preferences' | ||
| - Create: | ||
| * lightweight tag `v1.0` on HEAD | ||
| * annotated tag `v0.9` on HEAD~2 with message "First beta release" | ||
| """ |
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.
We don't need this
| # Ensure GitHub CLI is authenticated | ||
| gh_user = run_command(["gh", "api", "user", "--jq", ".login"], verbose).strip() | ||
| if not gh_user: | ||
| raise RuntimeError("GitHub CLI not authenticated. Run `gh auth login` and retry.") |
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.
This is already handled when you set __requires_github__ to True
|
|
||
| # Fresh sandbox, if re-downloading | ||
| if target_dir.exists(): | ||
| import shutil |
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.
I would avoid local imports, there's no issues with importing it at the start of the script
Exercise Review
Exercise Discussion
#93
Checklist
Git-Masteryorganization, have you created a request for it?repo-smithto validate the exercise grading scheme?test-download.sh?git-autograder?app?