Skip to content

Commit 6759054

Browse files
committed
Trying to get head_commit
1 parent 1ff80e1 commit 6759054

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

functions/webhookParser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
exports.handler = function(event, context, callback) {
22

3-
/* const { ref } = JSON.parse(event.body)
3+
const { head_commit } = JSON.parse(event.body)
44

5-
const send = ref => {
5+
/* const send = ref => {
66
callback(null, {
77
statusCode: 200,
88
body: JSON.stringify({ msg: 'Hello ' + ref})
@@ -11,7 +11,7 @@ exports.handler = function(event, context, callback) {
1111

1212
// Make sure HTTP method is POST
1313
if (event.httpMethod == 'POST') {
14-
console.log(JSON.parse(event.body));
14+
console.log(head_commit);
1515
//send(ref);
1616
}
1717
}

0 commit comments

Comments
 (0)