bin/pull_req_data_extraction.rb
def intra_branch?(pr)
    q = <<-QUERY
    select IF(base_repo_id = head_repo_id, true, false) as intra_branch
    from pull_requests where id = ?
    QUERY
    db.fetch(q, pr[:id]).first[:intra_branch]
  end
# Check if the pull request is intra_branch
Check if the pull request is intra_branch
Check if the pull request is intra_branch
def intra_branch?(pr)
    q = <<-QUERY
    select IF(base_repo_id = head_repo_id, true, false) as intra_branch
    from pull_requests where id = ?
    QUERY
    db.fetch(q, pr[:id]).first[:intra_branch]
  end
def intra_branch? ( pr ) q = <<-QUERY 
    select IF(base_repo_id = head_repo_id, true, false) as intra_branch
    from pull_requests where id = ?
     QUERY db . fetch ( q , pr [ :id ] ) . first [ :intra_branch ] end
Check if the pull request is intra_branch
Check if the pull request is intra_branch
pr