Skip to content

Commit 78a753c

Browse files
author
Bot
committed
fix pr body path
1 parent 39d435e commit 78a753c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actions/add-code-submission-to-db.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const main = async () => {
1717
console.log(JSON.stringify(context, null, 2));
1818
console.log(JSON.stringify(context.pull_request, null, 2));
1919

20-
if (context.pull_request) {
21-
prBody = context.pull_request.body;
20+
if (context.payload.pull_request) {
21+
prBody = context.payload.pull_request.body;
2222
} else {
2323
const octokit = github.getOctokit(process.env.TOKEN);
2424

0 commit comments

Comments
 (0)