From 76a68e332929a5f129a6cdfc496c6d98f6f9de7e Mon Sep 17 00:00:00 2001 From: Michael Shick Date: Wed, 8 Apr 2020 16:47:27 -0700 Subject: [PATCH] debug: adding context debugging --- dist/index.js | 4 ++-- index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 430a37c..844358b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2006,7 +2006,7 @@ const getPulls = async (repoToken, repo, commitSha) => { const body = await response.readBody(); - core.debug(body); + core.debug(JSON.stringify(body)); return body; }; @@ -2024,7 +2024,7 @@ async function run() { payload: { pull_request: pullRequest, sha, repository }, } = github.context; - core.debug(github.context); + core.debug(JSON.stringify(github.context)); const { full_name: repoFullName } = repository; diff --git a/index.js b/index.js index a3b9269..ead5923 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,7 @@ const getPulls = async (repoToken, repo, commitSha) => { const body = await response.readBody(); - core.debug(body); + core.debug(JSON.stringify(body)); return body; }; @@ -37,7 +37,7 @@ async function run() { payload: { pull_request: pullRequest, sha, repository }, } = github.context; - core.debug(github.context); + core.debug(JSON.stringify(github.context)); const { full_name: repoFullName } = repository;