Skip to content

Commit 200dfda

Browse files
committed
Set merged' action if merged' key is true
The GitHub API doesn't actually return `action = merged' when a PR is merged; it just sets `pull_request.merged = true'. From the Description field for the Action key: https://developer.github.com/v3/activity/events/types/#pullrequestevent
1 parent 8a0a065 commit 200dfda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ function stripData(data){
133133
'created': data.created_at
134134
});
135135
}else if(data.type == 'PullRequestEvent'){
136+
if (data.payload.pull_request.merged) data.payload.action = 'merged';
136137
stripedData.push({
137138
'id': data.id,
138139
'type': data.type,

0 commit comments

Comments
 (0)