Method to create an issue.
object
create
(string $user, string $repo, string $title, [string $body = null], [string $assignee = null], [integer $milestone = null], [array $labels = null])
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
string
$title: The title of the new issue.
-
string
$body: The body text for the new issue.
-
string
$assignee: The login for the GitHub user that this issue should be assigned to.
-
integer
$milestone: The milestone to associate this issue with.
-
array
$labels: The labels to associate with this issue.
Method to create a comment on an issue.
object
createComment
(string $user, string $repo, integer $issueId, string $body)
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
integer
$issueId: The issue number.
-
string
$body: The comment body text.
Method to create a label on a repo.
object
createLabel
(string $user, string $repo, string $name, string $color)
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
string
$name: The label name.
-
string
$color: The label color.
Method to delete a comment on an issue.
void
deleteComment
(string $user, string $repo, integer $commentId)
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
integer
$commentId: The id of the comment to delete.
Method to delete a label on a repo.
object
deleteLabel
(string $user, string $repo, string $label)
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
string
$label: The label name.
Method to update an issue.
object
edit
(string $user, string $repo, integer $issueId, [string $state = null], [string $title = null], [string $body = null], [string $assignee = null], [integer $milestone = null], [array $labels = null])
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
integer
$issueId: The issue number.
-
string
$state: The optional new state for the issue. [open, closed]
-
string
$title: The title of the new issue.
-
string
$body: The body text for the new issue.
-
string
$assignee: The login for the GitHub user that this issue should be assigned to.
-
integer
$milestone: The milestone to associate this issue with.
-
array
$labels: The labels to associate with this issue.
Method to update a comment on an issue.
object
editComment
(string $user, string $repo, integer $commentId, string $body)
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
integer
$commentId: The id of the comment to update.
-
string
$body: The new body text for the comment.
Method to update a label on a repo.
object
editLabel
(string $user, string $repo, string $label, string $name, string $color)
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
string
$label: The label name.
-
string
$name: The label name.
-
string
$color: The label color.
Method to get a single issue.
object
get
(string $user, string $repo, integer $issueId)
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
integer
$issueId: The issue number.
Method to get a specific comment on an issue.
object
getComment
(string $user, string $repo, integer $commentId)
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
integer
$commentId: The comment id to get.
Method to get the list of comments on an issue.
array
getComments
(string $user, string $repo, integer $issueId, [integer $page = 0], [integer $limit = 0])
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
integer
$issueId: The issue number.
-
integer
$page: The page number from which to get items.
-
integer
$limit: The number of items on a page.
Method to get a specific label on a repo.
object
getLabel
(string $user, string $repo, string $name)
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
string
$name: The label name to get.
Method to get the list of labels on a repo.
array
getLabels
(string $user, string $repo)
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
Method to list an authenticated user's issues.
array
getList
([
string $filter =
null], [
string $state =
null], [
string $labels =
null], [
string $sort =
null], [
string $direction =
null], [
JDate $since =
null], [
integer $page =
0], [
integer $limit =
0])
-
string
$filter: The filter type: assigned, created, mentioned, subscribed.
-
string
$state: The optional state to filter requests by. [open, closed]
-
string
$labels: The list of comma separated Label names. Example: bug,ui,@high.
-
string
$sort: The sort order: created, updated, comments, default: created.
-
string
$direction: The list direction: asc or desc, default: desc.
-
JDate
$since: The date/time since when issues should be returned.
-
integer
$page: The page number from which to get items.
-
integer
$limit: The number of items on a page.
Method to list issues.
array
getListByRepository
(
string $user,
string $repo, [
string $milestone =
null], [
string $state =
null], [
string $assignee =
null], [
string $mentioned =
null], [
string $labels =
null], [
string $sort =
null], [
string $direction =
null], [
JDate $since =
null], [
integer $page =
0], [
integer $limit =
0])
-
string
$user: The name of the owner of the GitHub repository.
-
string
$repo: The name of the GitHub repository.
-
string
$milestone: The milestone number, 'none', or *.
-
string
$state: The optional state to filter requests by. [open, closed]
-
string
$assignee: The assignee name, 'none', or *.
-
string
$mentioned: The GitHub user name.
-
string
$labels: The list of comma separated Label names. Example: bug,ui,@high.
-
string
$sort: The sort order: created, updated, comments, default: created.
-
string
$direction: The list direction: asc or desc, default: desc.
-
JDate
$since: The date/time since when issues should be returned.
-
integer
$page: The page number from which to get items.
-
integer
$limit: The number of items on a page.
Inherited Methods
Inherited From JGithubObject
JGithubObject::__construct()
JGithubObject::fetchUrl()
JGithubObject::processResponse()