class Bl::Commands::PullRequest
Public Class Methods
new(*)
click to toggle source
Calls superclass method
# File lib/bl/commands/pull_request.rb, line 4 def initialize(*) @config = Bl::Config.instance @url = "projects/#{@config[:project_key]}/git/repositories" super end
Public Instance Methods
count(id)
click to toggle source
# File lib/bl/commands/pull_request.rb, line 11 def count(id) res = request(:get, "#{@url}/#{id}/pullRequests/count") puts res.body.count end
list(id)
click to toggle source
# File lib/bl/commands/pull_request.rb, line 17 def list(id) res = request(:get, "#{@url}/#{id}/pullRequests") print_response(res, :pull_request) end