public
array
|
#
getList( string $owner, string $repo )
Method to get the list of labels on a repo.
Method to get the list of labels on a repo.
Parameters
- $owner
string - $owner The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
Returns
array
Throws
Since
12.3
|
public
object
|
#
get( string $user, string $repo, string $name )
Method to get a specific label on a repo.
Method to get a specific label on a repo.
Parameters
- $user
string - $user The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
- $name
string - $name The label name to get.
Returns
object
Throws
Since
12.3
|
public
object
|
#
create( string $owner, string $repo, string $name, string $color )
Method to create a label on a repo.
Method to create a label on a repo.
Parameters
- $owner
string - $owner The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
- $name
string - $name The label name.
- $color
string - $color The label color.
Returns
object
Throws
Since
12.3
|
public
object
|
#
update( string $user, string $repo, string $label, string $name, string $color )
Method to update a label on a repo.
Method to update a label on a repo.
Parameters
- $user
string - $user The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
- $label
string - $label The label name.
- $name
string - $name The new label name.
- $color
string - $color The new label color.
Returns
object
Throws
Since
12.3
|
public
object
|
#
delete( string $owner, string $repo, string $name )
Method to delete a label on a repo.
Method to delete a label on a repo.
Parameters
- $owner
string - $owner The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
- $name
string - $name The label name.
Returns
object
Throws
Since
12.3
|
public
object
|
#
getListByIssue( string $owner, string $repo, integer $number )
List labels on an issue.
Parameters
- $owner
string - $owner The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
- $number
integer - $number The issue number.
Returns
object
Since
3.3 (CMS)
|
public
object
|
#
add( string $owner, string $repo, string $number, array $labels )
Add labels to an issue.
Parameters
- $owner
string - $owner The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
- $number
string - $number The issue number.
- $labels
array - $labels An array of labels to add.
Returns
object
Since
3.3 (CMS)
|
public
object
|
#
removeFromIssue( string $owner, string $repo, string $number, string $name )
Remove a label from an issue.
Remove a label from an issue.
Parameters
- $owner
string - $owner The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
- $number
string - $number The issue number.
- $name
string - $name The name of the label to remove.
Returns
object
Since
3.3 (CMS)
|
public
object
|
#
replace( string $owner, string $repo, string $number, array $labels )
Replace all labels for an issue.
Replace all labels for an issue.
Sending an empty array ([]) will remove all Labels from the Issue.
Parameters
- $owner
string - $owner The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
- $number
string - $number The issue number.
- $labels
array - $labels New labels
Returns
object
Since
3.3 (CMS)
|
public
object
|
#
removeAllFromIssue( string $owner, string $repo, string $number )
.* Remove all labels from an issue.
.* Remove all labels from an issue.
Parameters
- $owner
string - $owner The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
- $number
string - $number The issue number.
Returns
object
Since
3.3 (CMS)
|
public
object
|
#
getListByMilestone( string $owner, string $repo, string $number )
Get labels for every issue in a milestone.
Get labels for every issue in a milestone.
Parameters
- $owner
string - $owner The name of the owner of the GitHub repository.
- $repo
string - $repo The name of the GitHub repository.
- $number
string - $number The issue number.
Returns
object
Since
3.3 (CMS)
|