Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JGithubPackageDataCommits
+ Graphe d'héritage de JGithubPackageDataCommits:

Fonctions membres publiques

 get ($owner, $repo, $sha)
 
 create ($owner, $repo, $message, $tree, array $parents=array())
 
- Fonctions membres publiques hérités de JGithubPackage
 __get ($name)
 
- Fonctions membres publiques hérités de JGithubObject
 __construct (Registry $options=null, JGithubHttp $client=null)
 

Membres hérités additionnels

- Fonctions membres protégées hérités de JGithubObject
 fetchUrl ($path, $page=0, $limit=0)
 
 processResponse (JHttpResponse $response, $expectedCode=200, $decode=true)
 
- Attributs protégés hérités de JGithubPackage
 $name = ''
 
 $packages = array()
 
- Attributs protégés hérités de JGithubObject
 $options
 
 $client
 

Description détaillée

GitHub API Data Commits class for the Joomla Platform.

https://developer.github.com/v3/git/commits/

Depuis
1.7.3
Obsolète:
4.0 Use the joomla/github package via Composer instead

Documentation des fonctions membres

◆ create()

create (   $owner,
  $repo,
  $message,
  $tree,
array  $parents = array() 
)

Method to create a commit.

Paramètres
string$ownerThe name of the owner of the GitHub repository.
string$repoThe name of the GitHub repository.
string$messageThe commit message.
string$treeSHA of the tree object this commit points to.
array$parentsArray of the SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided. For a merge commit, an array of more than one should be provided.
Exceptions
DomainException
Depuis
3.0.0
Renvoie
object

Références $data, $message, $path, et json_encode.

◆ get()

get (   $owner,
  $repo,
  $sha 
)

Get a single commit.

Paramètres
string$ownerThe name of the owner of the GitHub repository.
string$repoThe name of the GitHub repository.
string$shaThe commit SHA.
Renvoie
object

Références $path.


La documentation de cette classe a été générée à partir du fichier suivant :