1 | <?php |
||
13 | class Commits extends AbstractGitData |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Get a Commit |
||
18 | * |
||
19 | * @link https://developer.github.com/v3/git/commits/#get-a-commit |
||
20 | * |
||
21 | * @param string $sha |
||
22 | * |
||
23 | * @return array |
||
24 | */ |
||
25 | public function get(string $sha): array |
||
30 | |||
31 | /** |
||
32 | * Create a Commit |
||
33 | * |
||
34 | * @link https://developer.github.com/v3/git/commits/#create-a-commit |
||
35 | * |
||
36 | * @param string $message |
||
37 | * @param string $tree |
||
38 | * @param array|string $parents |
||
39 | * @param string $name |
||
40 | * @param string $email |
||
41 | * @param string $date |
||
42 | * |
||
43 | * @return array |
||
44 | * @throws \Exception |
||
45 | */ |
||
46 | public function create(string $message, string $tree, $parents, string $name = null, string $email = null, |
||
59 | } |