From dbdff87baf23d7a0ed864f5d13a8246f439f1f55 Mon Sep 17 00:00:00 2001 From: Benjamin Blake Date: Tue, 2 Nov 2021 14:47:41 -0600 Subject: [PATCH] Hotfix - Renamed occurences of old method name + Replaced instances of `getRawFile()` with `getFileContents()` --- src/Api/Repositories.php | 2 +- src/TestRun.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/Repositories.php b/src/Api/Repositories.php index 1653224..a88d2f5 100644 --- a/src/Api/Repositories.php +++ b/src/Api/Repositories.php @@ -149,7 +149,7 @@ class Repositories extends AbstractAllApiRequester * * Example: * ``` - * $client->repositories()->getRawFile($owner, $repoName, "README.md", "v2.0.0"); + * $client->repositories()->getFileContents($owner, $repoName, "README.md", "v2.0.0"); * ``` * * @param string $owner The owner of the repository diff --git a/src/TestRun.php b/src/TestRun.php index 53476ee..ce206ca 100644 --- a/src/TestRun.php +++ b/src/TestRun.php @@ -82,7 +82,7 @@ if ($repository) { } // print("Getting contents of \"composer.json\" file \n\n"); -// $rawFile = $giteaClient->repositories()->getRawFile("Sitelease", "sl-theme-recipe", "composer.json"); +// $rawFile = $giteaClient->repositories()->getFileContents("Sitelease", "sl-theme-recipe", "composer.json"); // if ($rawFile) { // var_dump(json_encode($rawFile)); // print("\n\n"); @@ -91,7 +91,7 @@ if ($repository) { // } // print("Getting contents of \"composer.json\" file \n\n"); -// $rawFile = $giteaClient->repositories()->getRawFile("Sitelease", "sl-theme-recipe", "composer.json"); +// $rawFile = $giteaClient->repositories()->getFileContents("Sitelease", "sl-theme-recipe", "composer.json"); // if ($rawFile) { // var_dump($rawFile); // print("\n\n");