Skip to content

Commit

Permalink
Merge pull request #512 from jemag/fix-repo-browser
Browse files Browse the repository at this point in the history
  • Loading branch information
pwntester committed Mar 11, 2024
2 parents b8fe290 + 76d4a2e commit 1e2376a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/octo/navigation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ function M.open_in_browser(kind, repo, number)
elseif buffer:isIssue() then
cmd = string.format("gh issue view --web -R %s/%s %d", remote, buffer.repo, buffer.number)
elseif buffer:isRepo() then
cmd = string.format("gh repo view --web -R %s/%s", remote, buffer.repo)
cmd = string.format("gh repo view --web %s/%s", remote, buffer.repo)
end
else
if kind == "pr" or kind == "pull_request" then
cmd = string.format("gh pr view --web -R %s/%s %d", remote, repo, number)
elseif kind == "issue" then
cmd = string.format("gh issue view --web -R %s/%s %d", remote, repo, number)
elseif kind == "repo" then
cmd = string.format("gh repo view --web -R %s/%s", remote, repo)
cmd = string.format("gh repo view --web %s", repo.url)
elseif kind == "gist" then
cmd = string.format("gh gist view --web %s", number)
elseif kind == "project" then
Expand Down

0 comments on commit 1e2376a

Please sign in to comment.