|
| create ($user, $repo, $ref, $sha) |
|
| edit ($user, $repo, $ref, $sha, $force=false) |
|
| get ($user, $repo, $ref) |
|
| getList ($user, $repo, $namespace='', $page=0, $limit=0) |
|
| __construct (Registry $options=null, JGithubHttp $client=null) |
|
GitHub API References class for the Joomla Platform.
- Depuis
- 1.7.3
- Obsolète:
- 4.0 Use the
joomla/github
package via Composer instead
◆ create()
create |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$ref, |
|
|
|
$sha |
|
) |
| |
Method to create an issue.
- Paramètres
-
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $ref | The name of the fully qualified reference. |
string | $sha | The SHA1 value to set this reference to. |
- Obsolète:
- use data->refs->create()
- Renvoie
- object
- Depuis
- 1.7.3
Références $data, $path, $user, et json_encode.
◆ edit()
edit |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$ref, |
|
|
|
$sha, |
|
|
|
$force = false |
|
) |
| |
Method to update a reference.
- Paramètres
-
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $ref | The reference to update. |
string | $sha | The SHA1 value to set the reference to. |
string | $force | Whether the update should be forced. Default to false. |
- Obsolète:
- use data->refs->edit()
- Renvoie
- object
- Depuis
- 1.7.3
Références $data, $path, $user, et json_encode.
◆ get()
get |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$ref |
|
) |
| |
Method to get a reference.
- Paramètres
-
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $ref | The reference to get. |
- Obsolète:
- use data->refs->get()
- Renvoie
- object
- Depuis
- 1.7.3
Références $path, et $user.
◆ getList()
getList |
( |
|
$user, |
|
|
|
$repo, |
|
|
|
$namespace = '' , |
|
|
|
$page = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
Method to list references for a repository.
- Paramètres
-
string | $user | The name of the owner of the GitHub repository. |
string | $repo | The name of the GitHub repository. |
string | $namespace | Optional sub-namespace to limit the returned references. |
integer | $page | Page to request |
integer | $limit | Number of results to return per page |
- Obsolète:
- use data->refs->getList()
- Renvoie
- array
- Depuis
- 1.7.3
Références $limit, $path, et $user.
La documentation de cette classe a été générée à partir du fichier suivant :