Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | public function create(string $message, string $tree, $parents, string $name = null, string $email = null, |
||
47 | string $date = 'now'): array |
||
48 | { |
||
49 | return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/git/commits', |
||
50 | $this->getGitData()->getOwner(), $this->getGitData()->getRepo()), Request::METHOD_POST, [ |
||
51 | 'message' => $message, |
||
52 | 'tree' => $tree, |
||
53 | 'parents' => $parents, |
||
54 | 'name' => $name, |
||
55 | 'email' => $email, |
||
56 | 'date' => (new DateTime($date))->format(DateTime::ATOM) |
||
57 | ]); |
||
58 | } |
||
59 | } |