Ejemplo n.º 1
0
 public function getStars()
 {
     $owner = $this->setting('owner');
     $repo = $this->setting('repository');
     $data = [];
     $data['subscribers'] = $this->github->repos()->subscribers($owner, $repo);
     $data['issues'] = $this->github->issues()->all($owner, $repo, ['state' => $this->setting('show.issues.state'), 'sort' => $this->setting('show.issues.sort')]);
     $data['releases'] = $this->github->repos()->releases()->all($owner, $repo);
     $data['downloads'] = $this->github->repos()->downloads()->all($owner, $repo);
     $data['forks'] = $this->github->repos()->forks()->all($owner, $repo);
     return $data;
 }
 /**
  * Update GutHub Issue
  *
  * @param string $id
  * @param array $data
  * @return array
  */
 public function updateIssue($id, $data)
 {
     $issueData = $this->client->issues()->update($this->gitHubOrganization, $this->gitHubRepo, $id, $data);
     return $issueData;
 }