diff --git a/dist/index.js b/dist/index.js index 7ac4d2b..8d99598 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1999,13 +1999,11 @@ const getPulls = async (repoToken, repo, commitSha) => { [Headers.Authorization]: `token ${repoToken}`, }; - const response = await http.getJson( + const body = await http.getJson( `https://api.github.com/repos/${repo}/commits/${commitSha}/pulls`, additionalHeaders ); - const body = await response.readBody(); - core.debug(JSON.stringify(body)); return body; diff --git a/index.js b/index.js index 1c818f7..e044eea 100644 --- a/index.js +++ b/index.js @@ -12,13 +12,11 @@ const getPulls = async (repoToken, repo, commitSha) => { [Headers.Authorization]: `token ${repoToken}`, }; - const response = await http.getJson( + const body = await http.getJson( `https://api.github.com/repos/${repo}/commits/${commitSha}/pulls`, additionalHeaders ); - const body = await response.readBody(); - core.debug(JSON.stringify(body)); return body;