Skip to content

Commit e3c7f7e

Browse files
Log the push event itself to see where the commits are
1 parent 96e4f98 commit e3c7f7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

writePushEvent.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import time from './time.js';
33

44
// https://docs.github.com/en/developers/webhooks-and-events/github-event-types#pushevent
55
export default function writePushEvent(event) {
6+
console.log({ event });
7+
68
let markdown = `📌 pushed${commit(event.repo, event.payload)}`;
79
for (let index = 1; index < event.payload.commits.length; index++) {
810
markdown += `\n- \`${time(new Date(event.created_at))}\`\n `;

0 commit comments

Comments
 (0)