@@ -43,7 +43,7 @@ module.exports = function(octokit, opts) {
4343 if ( ! base ) {
4444 // Work out the default branch
4545 base = (
46- await octokit . repos . get ( {
46+ await octokit . rest . repos . get ( {
4747 owner,
4848 repo
4949 } )
@@ -175,7 +175,7 @@ module.exports = function(octokit, opts) {
175175 updateRefBase = "" ;
176176 }
177177
178- await octokit . git [ action ] ( {
178+ await octokit . rest . git [ action ] ( {
179179 owner,
180180 repo,
181181 force : true ,
@@ -194,7 +194,7 @@ module.exports = function(octokit, opts) {
194194
195195async function fileExistsInRepo ( octokit , owner , repo , path , branch ) {
196196 try {
197- await octokit . repos . getContent ( {
197+ await octokit . rest . repos . getContent ( {
198198 method : "HEAD" ,
199199 owner,
200200 repo,
@@ -218,7 +218,7 @@ async function createCommit(
218218 baseTree
219219) {
220220 return (
221- await octokit . git . createCommit ( {
221+ await octokit . rest . git . createCommit ( {
222222 owner,
223223 repo,
224224 message,
@@ -232,7 +232,7 @@ async function createCommit(
232232
233233async function createTree ( octokit , owner , repo , treeItems , baseTree ) {
234234 return (
235- await octokit . git . createTree ( {
235+ await octokit . rest . git . createTree ( {
236236 owner,
237237 repo,
238238 tree : treeItems ,
@@ -246,7 +246,7 @@ async function createBlob(octokit, owner, repo, contents, type) {
246246 return contents ;
247247 } else {
248248 const file = (
249- await octokit . git . createBlob ( {
249+ await octokit . rest . git . createBlob ( {
250250 owner,
251251 repo,
252252 content : Buffer . from ( contents ) . toString ( "base64" ) ,
@@ -259,7 +259,7 @@ async function createBlob(octokit, owner, repo, contents, type) {
259259
260260async function loadRef ( octokit , owner , repo , ref ) {
261261 try {
262- const x = await octokit . git . getRef ( {
262+ const x = await octokit . rest . git . getRef ( {
263263 owner,
264264 repo,
265265 ref : `heads/${ ref } `
0 commit comments