Method: FlashFlow::Data::Github#fetch

Defined in:
lib/flash_flow/data/github.rb

#fetchObject



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' => (pr),
        'sha' => pr.head.sha
    )
  end
end