PHP Класс GitHubIssues, github-php-client

Наследование: extends GitHubService
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$assignees GitHubIssuesAssignees
$comments GitHubIssuesComments
$events GitHubIssuesEvents
$labels GitHubIssuesLabels
$milestones GitHubIssuesMilestones

Открытые методы

Метод Описание
__construct ( GitHubClient $client ) Initialize sub services
createAnIssue ( $owner, $repo, $title, $body = null, $assignees = null, $milestone = null, $labels = null ) : GitHubIssue Create an issue
editAnIssue ( $owner, $repo, $title = null, $number, $body = null, $assignees = null, $state = null, $milestone = null, $labels = null ) : GitHubIssue Edit an issue
getIssue ( $owner, $repo, $number ) : GitHubIssue List issues
listAllIssues ( $owner = false, $filter = null, $state = null, $labels = null, $sort = null, $direction = null, $since = null ) : array List all issues
listIssues ( $owner, $repo, $milestone = null, $state = null, $assignee = null, $creator = null, $mentioned = null, $labels = null, $sort = null, $direction = null, $since = null ) : array List issues

Описание методов

__construct() публичный Метод

Initialize sub services
public __construct ( GitHubClient $client )
$client GitHubClient

createAnIssue() публичный Метод

Create an issue
public createAnIssue ( $owner, $repo, $title, $body = null, $assignees = null, $milestone = null, $labels = null ) : GitHubIssue
$title string (Required) - The title of the issue.
$body string (Optional) - The contents of the issue.
$assignees array (Optional) of **strings** - Login(s) for the user(s) that this issue should be assigned to. Supplying a string here still works for backwards compatibility but will be removed in the future.
$milestone number (Optional) - Milestone to associate this issue with.
$labels array (Optional) of strings - Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue.
Результат GitHubIssue

editAnIssue() публичный Метод

Edit an issue
public editAnIssue ( $owner, $repo, $title = null, $number, $body = null, $assignees = null, $state = null, $milestone = null, $labels = null ) : GitHubIssue
$body string (Optional) - The contents of the issue.
$assignees array (Optional) of **strings** - Login(s) for the user(s) that this issue should be assigned to. Supplying a string here still works for backwards compatibility but will be removed in the future.
$state string (Optional) - State of the issue: `open` or `closed`.
$milestone number (Optional) - Milestone to associate this issue with.
$labels array (Optional) of **strings** - Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue.
Результат GitHubIssue

getIssue() публичный Метод

List issues
public getIssue ( $owner, $repo, $number ) : GitHubIssue
Результат GitHubIssue

listAllIssues() публичный Метод

List all issues
public listAllIssues ( $owner = false, $filter = null, $state = null, $labels = null, $sort = null, $direction = null, $since = null ) : array
$owner boolean|string true, for all my issues, false, for all issues or organization name all issues
Результат array

listIssues() публичный Метод

List issues
public listIssues ( $owner, $repo, $milestone = null, $state = null, $assignee = null, $creator = null, $mentioned = null, $labels = null, $sort = null, $direction = null, $since = null ) : array
$milestone number (Optional) - Milestone to associate this issue with.
$assignee string (Optional) - Login for the user that this issue should be assigned to.
$creator string (Optional) - Login for the user that created this issue.
$mentioned string (Optional) - Login for a user mentioned in this issue.
Результат array

Описание свойств

$assignees публичное свойство

public GitHubIssuesAssignees $assignees
Результат GitHubIssuesAssignees

$comments публичное свойство

public GitHubIssuesComments $comments
Результат GitHubIssuesComments

$events публичное свойство

public GitHubIssuesEvents $events
Результат GitHubIssuesEvents

$labels публичное свойство

public GitHubIssuesLabels $labels
Результат GitHubIssuesLabels

$milestones публичное свойство

public GitHubIssuesMilestones $milestones
Результат GitHubIssuesMilestones