JGithubIssues
Extends \JGithubObjectGitHub API Issues class for the Joomla Platform.
package |
Joomla.Platform |
---|---|
subpackage |
GitHub |
since |
11.3 |
Methods
__construct
Constructor.
__construct(\JRegistry &$options = null, \JGithubHttp $client = null)
create
Method to create an issue.
create(string $user, string $repo, string $title, string $body = null, string $assignee = null, integer $milestone = null, array $labels = null) : object
since |
11.3 |
---|
Arguments
- $user
string
The name of the owner of the GitHub repository.- $repo
string
The name of the GitHub repository.- $title
string
The title of the new issue.- $body
string
The body text for the new issue.- $assignee
string
The login for the GitHub user that this issue should be assigned to.- $milestone
integer
The milestone to associate this issue with.- $labels
array
The labels to associate with this issue.
Response
object
createComment
Method to create a comment on an issue.
createComment(string $user, string $repo, integer $issueId, string $body) : object
since |
11.3 |
---|
Arguments
- $user
string
The name of the owner of the GitHub repository.- $repo
string
The name of the GitHub repository.- $issueId
integer
The issue number.- $body
string
The comment body text.
Response
object
deleteComment
Method to delete a comment on an issue.
deleteComment(string $user, string $repo, integer $commentId) : void
since |
11.3 |
---|
Arguments
- $user
string
The name of the owner of the GitHub repository.- $repo
string
The name of the GitHub repository.- $commentId
integer
The id of the comment to delete.
edit
Method to update an issue.
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) : object
since |
11.3 |
---|
Arguments
- $user
string
The name of the owner of the GitHub repository.- $repo
string
The name of the GitHub repository.- $issueId
integer
The issue number.- $state
string
The optional new state for the issue. [open, closed]- $title
string
The title of the new issue.- $body
string
The body text for the new issue.- $assignee
string
The login for the GitHub user that this issue should be assigned to.- $milestone
integer
The milestone to associate this issue with.- $labels
array
The labels to associate with this issue.
Response
object
editComment
Method to update a comment on an issue.
editComment(string $user, string $repo, integer $commentId, string $body) : object
since |
11.3 |
---|
Arguments
- $user
string
The name of the owner of the GitHub repository.- $repo
string
The name of the GitHub repository.- $commentId
integer
The id of the comment to update.- $body
string
The new body text for the comment.
Response
object
fetchUrl
Method to build and return a full request URL for the request. This method will add appropriate pagination details if necessary and also prepend the API url to have a complete URL for the request.
fetchUrl(string $path, integer $page, integer $limit) : string
since |
11.3 |
---|
Arguments
- $path
string
URL to inflect- $page
integer
Page to request- $limit
integer
Number of results to return per page
Response
string
The request URL.
get
Method to get a single issue.
get(string $user, string $repo, integer $issueId) : object
since |
11.3 |
---|
Arguments
- $user
string
The name of the owner of the GitHub repository.- $repo
string
The name of the GitHub repository.- $issueId
integer
The issue number.
Response
object
getComment
Method to get a specific comment on an issue.
getComment(string $user, string $repo, integer $commentId) : object
since |
11.3 |
---|
Arguments
- $user
string
The name of the owner of the GitHub repository.- $repo
string
The name of the GitHub repository.- $commentId
integer
The comment id to get.
Response
object
getComments
Method to get the list of comments on an issue.
getComments(string $user, string $repo, integer $issueId, integer $page, integer $limit) : array
since |
11.3 |
---|
Arguments
- $user
string
The name of the owner of the GitHub repository.- $repo
string
The name of the GitHub repository.- $issueId
integer
The issue number.- $page
integer
The page number from which to get items.- $limit
integer
The number of items on a page.
Response
array
getList
Method to list an authenticated user's issues.
getList(string $filter = null, string $state = null, string $labels = null, string $sort = null, string $direction = null, \JDate $since = null, integer $page, integer $limit) : array
since |
11.3 |
---|
Arguments
- $filter
string
The filter type: assigned, created, mentioned, subscribed.- $state
string
The optional state to filter requests by. [open, closed]- $labels
string
The list of comma separated Label names. Example: bug,ui,@high.- $sort
string
The sort order: created, updated, comments, default: created.- $direction
string
The list direction: asc or desc, default: desc.- $since
\JDate
The date/time since when issues should be returned.- $page
integer
The page number from which to get items.- $limit
integer
The number of items on a page.
Response
array
getListByRepository
Method to list issues.
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, integer $limit) : array
since |
11.3 |
---|
Arguments
- $user
string
The name of the owner of the GitHub repository.- $repo
string
The name of the GitHub repository.- $milestone
string
The milestone number, 'none', or *.- $state
string
The optional state to filter requests by. [open, closed]- $assignee
string
The assignee name, 'none', or *.- $mentioned
string
The GitHub user name.- $labels
string
The list of comma separated Label names. Example: bug,ui,@high.- $sort
string
The sort order: created, updated, comments, default: created.- $direction
string
The list direction: asc or desc, default: desc.- $since
\JDate
The date/time since when issues should be returned.- $page
integer
The page number from which to get items.- $limit
integer
The number of items on a page.
Response
array
Properties
client
The HTTP client object to use in sending HTTP requests.