debug: adding context debugging

This commit is contained in:
Michael Shick 2020-04-08 16:49:21 -07:00
parent 76a68e3329
commit 566e30ed2c
No known key found for this signature in database
GPG key ID: ADF5BC9704BB4A61
2 changed files with 8 additions and 0 deletions

4
dist/index.js vendored
View file

@ -1999,6 +1999,8 @@ const getPulls = async (repoToken, repo, commitSha) => {
[Headers.Authorization]: `token ${repoToken}`,
};
core.debug(`https://api.github.com/repos/${repo}/commits/${commitSha}/pulls`);
const response = await http.getJson(
`https://api.github.com/repos/${repo}/commits/${commitSha}/pulls`,
additionalHeaders
@ -2025,6 +2027,8 @@ async function run() {
} = github.context;
core.debug(JSON.stringify(github.context));
core.debug(JSON.stringify(pullRequest));
core.debug(`sha: ${sha}`);
const { full_name: repoFullName } = repository;