Class: PrLog::FetchCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/pr_log/fetch_command.rb

Overview

Top level workflow of the fetch command

Instance Method Summary collapse

Methods inherited from Command

perform

Instance Method Details

#performObject



6
7
8
9
10
11
12
# File 'lib/pr_log/fetch_command.rb', line 6

def perform
  emit(:fetching, project.milestone, project.github_repository_name)
  pull_requests = new_pull_requests

  emit(:inserting, pull_requests, config.changelog_file)
  insert_pull_requests(pull_requests)
end