diff --git a/lib/main.js b/lib/main.js index 5bf3c80..637eae5 100644 --- a/lib/main.js +++ b/lib/main.js @@ -29,16 +29,19 @@ function run() { const repo = github_1.context.repo.repo; const pr_number = Number((_a = github_1.context.payload.pull_request) === null || _a === void 0 ? void 0 : _a.number); const prId = (_b = github_1.context.payload.pull_request) === null || _b === void 0 ? void 0 : _b.id; - const promise = octokit.pulls.get({ + octokit.pulls.get({ owner: owner, repo: repo, pull_number: pr_number, }); - promise.then((result) => { - console.log(result.data.draft); - }, error => { - console.log(error); - }); + // promise.then( + // (result) => { + // console.log(result.data.draft) + // }, + // error => { + // console.log(error) + // } + // ) // const isDraft = result.data.draft // if(ignoreDrafts){ // if(!isDraft) { diff --git a/src/main.ts b/src/main.ts index 83c2589..213fc88 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,20 +12,20 @@ async function run(): Promise { const pr_number = Number(context.payload.pull_request?.number) const prId = context.payload.pull_request?.id - const promise = octokit.pulls.get({ + octokit.pulls.get({ owner: owner, repo: repo, pull_number: pr_number, }) - promise.then( - (result) => { - console.log(result.data.draft) - }, - error => { - console.log(error) - } - ) + // promise.then( + // (result) => { + // console.log(result.data.draft) + // }, + // error => { + // console.log(error) + // } + // ) // const isDraft = result.data.draft // if(ignoreDrafts){