private function buildBranchAndRepoInfo(PushEvent $event)
 {
     $q = 'MERGE (branch:Branch {reference: {branch_ref}})
     ON CREATE SET branch.name = {branch_name}
     MERGE (repo:Repository {id: {repo_id}})
     ON CREATE SET repo.name = {repo_name}
     MERGE (branch)-[:BRANCH_OF]->(repo)';
     $p = ['event_id' => $event->getEventId(), 'branch_ref' => $this->getBranchReference($event), 'branch_name' => $this->getBranchName($event), 'repo_id' => $event->getRepository()->getId(), 'repo_name' => $this->getRepoName($event->getRepository())];
     return ['query' => $q, 'params' => $p];
 }