36 37 38 39 40 41 42 43 44 45
# File 'lib/flash_flow/data/github.rb', line 36 def fetch pull_requests.map do |pr| Branch.from_hash( 'ref' => pr.head.ref, 'status' => status_from_labels(pr), 'metadata' => metadata(pr), 'sha' => pr.head.sha ) end end