Skip to content

Commit 8033012

Browse files
committed
more logging to pr update
1 parent 5882c8a commit 8033012

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/add-checklist-to-pr.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ module.exports = async ({ github, context }) => {
4545
newBody = body + "\n" + marker + "\n" + checklist;
4646
}
4747

48+
console.log('@@ pulls opts: ', {
49+
owner: context.repo.owner,
50+
repo: context.repo.repo,
51+
pull_number: pr_number,
52+
body: newBody
53+
});
54+
4855
// Update the PR description
4956
await github.rest.pulls.update({
5057
owner: context.repo.owner,
@@ -53,6 +60,7 @@ module.exports = async ({ github, context }) => {
5360
body: newBody
5461
});
5562
} catch (updatePrError) {
63+
console.error('@@ updatePrError: ', updatePrError);
5664
throw new Error("Could not update PR description based on samples checklist. Please fix the issues and try again.")
5765
}
5866

0 commit comments

Comments
 (0)