Class: GithubIssuesCli::Command::Browse

Inherits:
GithubIssuesCli::Command show all
Defined in:
lib/github_issues_cli/command/browse.rb

Instance Attribute Summary

Attributes inherited from GithubIssuesCli::Command

#git_repo, #username

Instance Method Summary collapse

Methods inherited from GithubIssuesCli::Command

#authenticate, #get_git_push_target, #get_git_repo, #get_issue_number, #get_pullrequest, #get_source_branch, #get_upstream_repo, #initialize, #run

Constructor Details

This class inherits a constructor from GithubIssuesCli::Command

Instance Method Details

#executeObject



4
5
6
7
8
# File 'lib/github_issues_cli/command/browse.rb', line 4

def execute
  github_repo = get_upstream_repo
  url = 'https://github.com/' + github_repo[:user] + '/' + github_repo[:name] + '/issues/' + get_issue_number
  system('open ' + url)
end