public function updateFile($file_path, $content, $branch_name, $commit_message) { $data = $this->api('repo')->updateFile($this->id, $file_path, $content, $branch_name, $commit_message); return File::fromArray($this->getClient(), $this, $data); }
/** * Send file to repository * @param string $filePath * @param string $content * @param string $branch * @param string $message * @throws Gitlab\Exception\RuntimeException; */ public function sendFile($filePath, $content, $branch, $message) { $project = new Project($this->getProjectID(), $this->client); $project->updateFile($filePath, $content, $branch, $message); }