bin/pull_req_data_extraction.rb
def issue_comments(owner, repo, pr_id)
    mongo['issue_comments'].find(
        {'owner' => owner, 'repo' => repo, 'issue_id' => pr_id.to_i},
        {:fields => {'body' => 1, 'created_at' => 1, '_id' => 0},
         :sort   => {'created_at' => 1}}
    ).map { |x| x }

  end
# Returns all comments for the issue sorted by creation date ascending
Returns all comments for the issue sorted by creation date ascending
Returns all comments for the issue sorted by creation date ascending
def issue_comments(owner, repo, pr_id)
    mongo['issue_comments'].find(
        {'owner' => owner, 'repo' => repo, 'issue_id' => pr_id.to_i},
        {:fields => {'body' => 1, 'created_at' => 1, '_id' => 0},
         :sort   => {'created_at' => 1}}
    ).map { |x| x }
  end
def issue_comments ( owner , repo , pr_id ) mongo [ 'issue_comments' ] . find ( { 'owner' => owner , 'repo' => repo , 'issue_id' => pr_id . to_i } , { :fields => { 'body' => 1 , 'created_at' => 1 , '_id' => 0 } , :sort => { 'created_at' => 1 } } ) . map { | x | x } end
Returns all comments for the issue sorted by creation date ascending
Returns all comments for the issue sorted by creation date ascending
owner
repo
pr_id