Skip to content

Commit dae3f11

Browse files
committed
update
1 parent 5ea91e7 commit dae3f11

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tools/pkg.pr.new-comment.mjs

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ export default async function ({ github, context, output }) {
55
// eslint-disable-next-line no-console -- For debugging on github actions.
66
console.log("pkg-pr-new publish output:", JSON.stringify(output));
77

8-
// eslint-disable-next-line no-console -- For debugging on github actions.
9-
console.log("context: ", JSON.stringify(context));
10-
118
const sha =
12-
context.event_name === "pull_request"
9+
context.eventName === "pull_request"
1310
? context.payload.pull_request.head.sha
1411
: context.payload.after;
1512
const commitUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/commit/${sha}`;

0 commit comments

Comments
 (0)