Example #1
0
 function _before()
 {
     parent::_before();
     $this->gitGroup = $this->getData('gitGroup');
     $this->gitName = $this->getData('gitName');
     $this->repo = new Reposite($this->gitGroup, $this->gitName);
     $rmod = new \firegit\app\mod\git\Reposite();
     $this->role = $rmod->getUser($this->gitGroup, $this->gitName, $this->user);
     $this->response->set(array('git' => array('group' => $this->gitGroup, 'name' => $this->gitName, 'url' => 'http://' . $this->getData('user') . '@' . $this->request->host . '/' . $this->gitGroup . '/' . $this->gitName . '.git'), 'prefix' => '/' . $this->gitGroup . '/' . $this->gitName . '/', 'role' => $this->role));
 }
Example #2
0
 function merges_action()
 {
     $this->setBranch();
     $merge = new \firegit\app\mod\git\Merge();
     $merges = $merge->pagedGetMerges($this->_pn, $this->_sz, 1 | 2 | 4, $this->gitGroup, $this->gitName);
     $branches = $this->repo->listBranches();
     $rmod = new \firegit\app\mod\git\Reposite();
     $role = $rmod->getUser($this->gitGroup, $this->gitName, $this->getData('user'));
     $umod = new \firegit\app\mod\user\User();
     $tusers = $umod->getUsers();
     $this->setData('tusers', $tusers);
     $this->set(array('pageTitle' => '合并请求列表', 'total' => $merges['total'], 'merges' => $merges['list'], 'navType' => 'merge', 'branches' => $branches, 'notShowNav' => true, 'role' => $role))->setView('git/merges.phtml');
 }