class Pronto::Github
def pull
def pull @pull ||= if env_pull_id @github_pull.pull_by_id(env_pull_id) elsif @repo.branch @github_pull.pull_by_branch(@repo.branch) elsif @repo.head_detached? @github_pull.pull_by_commit(@repo.head_commit_sha) end end
def pull @pull ||= if env_pull_id @github_pull.pull_by_id(env_pull_id) elsif @repo.branch @github_pull.pull_by_branch(@repo.branch) elsif @repo.head_detached? @github_pull.pull_by_commit(@repo.head_commit_sha) end end