Lines Matching refs:this

91             $this->configError = 'Authentication token is missing!';
96 $user = $this->makeGitHubGETRequest('/user');
99 … $this->configError = 'The GitHub authentication failed with message: ' . hsc($e->getMessage());
102 $this->user = $user;
104 $headers = $this->dokuHTTPClient->resp_headers;
105 $missing_scopes = array_diff($this->scopes, explode(', ', $headers['x-oauth-scopes']));
107 $this->configError = 'Scopes "' . implode(', ', $missing_scopes) . '" are missing!';
132 $data = $this->makeGitHubRequest($endpoint, [], 'GET', []);
147 if ($this->dokuHTTPClient->resp_headers['x-ratelimit-remaining'] < 500) {
150 dformat($this->dokuHTTPClient->resp_headers['x-ratelimit-reset'])
157 if (empty($this->dokuHTTPClient->resp_headers['link'])) {
160 $links = $utils->parseHTTPLinkHeaders($this->dokuHTTPClient->resp_headers['link']);
164 $endpoint = substr($links['next'], strlen($this->githubUrl));
192 $url = $this->githubUrl . $endpoint;
194 return $this->makeHTTPRequest($this->dokuHTTPClient, $url, $requestHeaders, $data, $method);
199 $scopes = implode(', ', $this->scopes);
202 $message .= $this->configError;
227 $repos = $this->makeGitHubGETRequest($endpoint);
241 $repoHooks = $this->makeGitHubGETRequest($endpoint);
246 $repoHooks = array_filter($repoHooks, [$this, 'isOurIssueHook']);
260 $data = $this->makeGitHubRequest("/repos/$project/hooks/$hookid", [], 'DELETE');
261 $status = $this->dokuHTTPClient->status;
290 $data = $this->makeGitHubRequest("/repos/$project/hooks", $data, 'POST');
291 $status = $this->dokuHTTPClient->status;
307 if (!$this->isSignatureValid($webhookBody, $data['repository']['full_name'])) {
355 if (!$this->saveIssue($data)) {
384 $this->setIssueData($issue, $data['issue']);
402 $issue->setType($this->getTypeFromLabels($labels));
437 if ($this->orgs === null) {
440 $this->orgs = $this->makeGitHubGETRequest($endpoint);
442 $this->orgs = [];
449 }, $this->orgs);
454 return $this->user['login'];
462 $result = $this->makeGitHubGETRequest($endpoint);
463 $this->setIssueData($issue, $result);
467 $result = $this->makeGitHubGETRequest($endpoint);
470 $issues = $this->parseMergeRequestDescription($repo, $mergeRequestText);
535 $issues = $this->makeGitHubGETRequest($endpoint);
540 if (empty($this->total)) {
541 $this->total = $this->estimateTotal($perPage, count($issues));
555 $this->setIssueData($issue, $issueData);
573 $headers = $this->dokuHTTPClient->resp_headers;
594 return $this->total;