Implement T8L4/glossary-branch-rename#243
Conversation
|
Hi @SAN-MUYUN, thank you for your contribution! 🎉 This PR comes from your fork Before you request for a review, please ensure that you have tested your changes locally! Important The previously recommended way of using Please read the following instructions for the latest instructions. PrerequisitesEnsure that you have the Testing stepsIf you already have a local Git-Mastery root to test, you can skip the following step. Create a Git-Mastery root locally: gitmastery setupNavigate into the Git-Mastery root (defaults to cd gitmastery-exercises/Edit the {
# other fields...
"exercises_source": {
"username": "SAN-MUYUN",
"repository": "git-mastery-exercises",
"branch": "exercise/glossary-branch-rename"
}
}Then, you can use the gitmastery download <your new change>
gitmastery verifyChecklist
Important To any reviewers of this pull request, please use the same instructions above to test the changes. |
|
@SAN-MUYUN Do follow the naming conventions of pull requests as they will be used for squash merge, will help us maintain a clean commit history, thank you! |
|
@jovnc thanks for the reminder! Should I open the PR for review now? Or wait until we are ready to implement the |
|
@SAN-MUYUN Feel free to mark as ready, though we will only merge in once test_verify is implemented |
|
@SAN-MUYUN I'll review this once tests are ready |
…ises into exercise/glossary-branch-rename
|
@jovnc The tests are ready, feel free to review |
glossary_branch_rename/download.py
Outdated
| UPSTREAM_REPO = "git-mastery/samplerepo-funny-glossary" | ||
|
|
||
| username = get_github_username(verbose) | ||
| assert username is not None |
There was a problem hiding this comment.
This assertion is unnecessary, assertions should be for developer mistake, get_github_username could fail if gh cli fails
| # directory after setting up "remote" repo, and proceed with "local" repo | ||
| root_path = os.getcwd() | ||
|
|
||
| remote_worktree_dir = rs_remote.repo.working_tree_dir |
There was a problem hiding this comment.
This seems to be unnecessary now, why not just set rs_remote as the origin remote of rs first, then push the necessary updates from rs to rs_remote?
|
@jovnc Thanks for the input! I have made the relevant changes. |
jovnc
left a comment
There was a problem hiding this comment.
LGTM, helped to remove an unnecessary os import (but my ruff auto formatter also ran), so I guess I also helped to format the code for test_verify.py
Thanks for the work @SAN-MUYUN will merge it in now

Exercise Review
Exercise Discussion
Fixes #239
Checklist
Git-Masteryorganization, have you created a request for it?repo-smithto validate the exercise grading scheme?git-autograder?app?