Skip to content

Conversation

@LeeZeHao
Copy link

Exercise Review

Exercise Discussion

#86

Checklist

  • If you require a new remote repository on the Git-Mastery organization, have you created a request for it?
  • Have you written unit tests using repo-smith to validate the exercise grading scheme?
  • Have you tested the download script using test-download.sh?
  • Have you verified that this exercise does not already exist or is not currently in review?
  • Did you introduce a new grading mechanism that should belong to git-autograder?
  • Did you introduce a new dependency that should belong to app?

Copy link
Member

@woojiahao woojiahao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor nits about coding convention!

from exercise_utils.gitmastery import create_start_tag

__requires_git__ = True
__requires_github__ = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're not using gh, you don't need this to be set to true

Suggested change
__requires_github__ = True
__requires_github__ = False


def download(verbose: bool):
os.makedirs("samplerepo-finances")
# Clone the samplerepo-finances repo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Clone the samplerepo-finances repo

# Clone the samplerepo-finances repo
run_command(["git", "clone", "https://github.com/git-mastery/samplerepo-finances.git"], verbose)
os.chdir("samplerepo-finances")
# Change the remote origin to point to samplerepo-finances-2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Change the remote origin to point to samplerepo-finances-2

Comment on lines 17 to 18

pass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pass

once the function behavior is populated, you are free to remove pass

@LeeZeHao
Copy link
Author

@woojiahao understood, implemented suggested changes in latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Hands-On Discussion] T3L3/hp-fetch-merge (Fetch and merge from a remote)

2 participants