From 271e6c6a6c6d2aaa2116e3dab1995639686b8926 Mon Sep 17 00:00:00 2001 From: izruff Date: Sun, 2 Nov 2025 15:51:23 +0800 Subject: [PATCH 1/2] Init hp-add-tags with new.sh script --- hands_on/add_tags.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 hands_on/add_tags.py diff --git a/hands_on/add_tags.py b/hands_on/add_tags.py new file mode 100644 index 0000000..04f6d0b --- /dev/null +++ b/hands_on/add_tags.py @@ -0,0 +1,9 @@ +from exercise_utils.cli import run_command +from exercise_utils.gitmastery import create_start_tag + +__requires_git__ = True +__requires_github__ = True + + +def download(verbose: bool): + pass From 0d06001297ebe7055486ef9f434dbc5dedba57a2 Mon Sep 17 00:00:00 2001 From: izruff Date: Sun, 2 Nov 2025 15:54:17 +0800 Subject: [PATCH 2/2] Implement hp-add-tags download workflow --- hands_on/add_tags.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hands_on/add_tags.py b/hands_on/add_tags.py index 04f6d0b..fa1705a 100644 --- a/hands_on/add_tags.py +++ b/hands_on/add_tags.py @@ -1,9 +1,11 @@ from exercise_utils.cli import run_command -from exercise_utils.gitmastery import create_start_tag __requires_git__ = True __requires_github__ = True +WORKING_REPO = "samplerepo-preferences" + def download(verbose: bool): - pass + run_command(["gh", "repo", "fork", f"git-mastery/{WORKING_REPO}", + "--clone"], verbose)