Skip to content

Commit 1144900

Browse files
committed
- fixed issue
1 parent 83a4936 commit 1144900

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ module.exports = (app) => {
340340
async (context) => {
341341
const {
342342
context: ctx,
343-
commit: { sha },
343+
head_commit: { id: sha },
344344
repository: { owner: { login: owner }, name: repo },
345345
} = context.payload;
346346
app.log.info('push');
@@ -366,10 +366,6 @@ module.exports = (app) => {
366366
repository: { owner: { login: owner }, name: repo },
367367
action,
368368
} = context.payload;
369-
if (!['closed', 'merged'].includes(action)) {
370-
app.log.info(`Action on pull request. But action ${action} is not appropriate. Skipping...`);
371-
return;
372-
}
373369
if (!pullNumber) {
374370
app.log.info(`Close pull request cannot be found. Delete dismissed.`);
375371
return;

0 commit comments

Comments
 (0)