Skip to content

Commit 96e4f98

Browse files
Log commitless payload of a push event
1 parent 3b237fd commit 96e4f98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

commit.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import name from './name.js';
22

33
export default function commit(repo, payload, index = 0) {
4+
if (!payload.commits) {
5+
console.log({ repo, payload });
6+
}
7+
48
const commit = [...payload.commits].reverse()[index];
59

610
return `\n [${commit.message.match(/^.*/g)[0]}](https://github.com/${repo.name}/commit/${commit.sha})\n into${name(repo.name)}`;

0 commit comments

Comments
 (0)