PHP 클래스 GitHubIssues, github-php-client

상속: extends GitHubService
파일 보기 프로젝트 열기: tan-tan-kanarek/github-php-client

공개 프로퍼티들

프로퍼티 타입 설명
$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