Method: FlashFlow::Data::Github#initialize

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

#initialize(config = {}) ⇒ Github

Returns a new instance of Github.



10
11
12
13
14
15
16
17
18
# File 'lib/flash_flow/data/github.rb', line 10

def initialize(config={})
  initialize_connection!(config['token'])
  @repo = config['repo']
  @master_branch = config['master_branch'] || master
  @unmergeable_label = config['unmergeable_label'] || 'unmergeable'
  @do_not_merge_label = config['do_not_merge_label'] || 'do not merge'
  @code_reviewed_label = config['code_reviewed_label'] || 'code reviewed'
  @shippable_label = config['shippable_label'] || 'shippable'
end