mirror of
https://github.com/mshick/add-pr-comment.git
synced 2025-12-31 22:29:45 +11:00
debug: adding context debugging
This commit is contained in:
parent
76a68e3329
commit
566e30ed2c
2 changed files with 8 additions and 0 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
4
index.js
4
index.js
|
|
@ -12,6 +12,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
|
||||
|
|
@ -38,6 +40,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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue