Sha256: cd796d954c7c9ca4f197a4f558c85e9039014412e64bc2973fd9138e469c5628
Contents?: true
Size: 996 Bytes
Versions: 2
Compression:
Stored size: 996 Bytes
Contents
class Gitcycle module Discuss def discuss(*issues) require_git && require_config if issues.empty? branch = create_pull_request if branch == false puts "Branch not found.\n".red elsif branch['issue_url'] puts "\nLabeling issue as 'Discuss'.\n".green get('label', 'branch[name]' => branch['name'], 'labels' => [ 'Discuss' ] ) puts "Opening issue: #{branch['issue_url']}\n".green Launchy.open(branch['issue_url']) else puts "You must push code before opening a pull request.\n".red end else puts "\nRetrieving branch information from gitcycle.\n".green get('branch', 'issues' => issues, 'scope' => 'repo').each do |branch| if branch['issue_url'] puts "Opening issue: #{branch['issue_url']}\n".green Launchy.open(branch['issue_url']) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gitcycle-0.3.5 | lib/gitcycle/discuss.rb |
gitcycle-0.3.4 | lib/gitcycle/discuss.rb |