Lines Matching refs:issue
46 public static function isIssueValid(Issue $issue) argument
48 $summary = $issue->getSummary();
50 $status = $issue->getStatus();
52 $type = $issue->getType();
67 $issue = Issue::getInstance('github', $projectKey, $issueId, true);
68 $isPullRequest = $issue->getFromDB();
71 return $issue;
75 $issue = Issue::getInstance('github', $projectKey, $issueId, false);
76 $issue->getFromDB();
78 return $issue;
376 $issue = Issue::getInstance(
384 $this->setIssueData($issue, $data['issue']);
386 return $issue->saveToDB();
390 * @param Issue $issue
393 protected function setIssueData(Issue $issue, $info) argument
395 $issue->setSummary($info['title']);
396 $issue->setDescription($info['body']);
400 $issue->setLabelData($label['name'], '#' . $label['color']);
402 $issue->setType($this->getTypeFromLabels($labels));
403 $issue->setStatus(isset($info['merged']) ? 'merged' : $info['state']);
404 $issue->setUpdated($info['updated_at']);
406 $issue->setVersions([$info['milestone']['title']]);
408 $issue->setLabels($labels);
410 $issue->setAssignee($info['assignee']['login'], $info['assignee']['avatar_url']);
457 public function retrieveIssue(Issue $issue) argument
459 $repo = $issue->getProject();
460 $issueNumber = $issue->getKey();
463 $this->setIssueData($issue, $result);
465 $issue->isMergeRequest(true);
468 $issue->setStatus($result['merged'] ? 'merged' : $result['state']);
469 $mergeRequestText = $issue->getSummary() . ' ' . $issue->getDescription();
473 $db->saveIssueIssues($issue, $issues);
546 $issue = Issue::getInstance(
555 $this->setIssueData($issue, $issueData);
556 $issue->saveToDB();
557 $retrievedIssues[] = $issue;