This commit changes the repo view command to fetch the cwd git remote-origin when no repository argument is provided. If its not in a git folder then it will just log an error instead.
Does this pull request fix one issue?
Fixes #413
Describe how you did it
Check cwd is a git folder -> Attempt to fetch origin url -> Pull repository name and pass to edit octo buffer
Describe how to verify it
Run Octo repo view in a folder that has a remote-origin set
Describe what this PR does / why we need it
This commit changes the
repo view
command to fetch the cwd git remote-origin when no repository argument is provided. If its not in a git folder then it will just log an error instead.Does this pull request fix one issue?
Fixes #413
Describe how you did it
Check cwd is a git folder -> Attempt to fetch origin url -> Pull repository name and pass to edit octo buffer
Describe how to verify it
Run
Octo repo view
in a folder that has a remote-origin setSpecial notes for reviews