We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83a4936 commit 1144900Copy full SHA for 1144900
index.js
@@ -340,7 +340,7 @@ module.exports = (app) => {
340
async (context) => {
341
const {
342
context: ctx,
343
- commit: { sha },
+ head_commit: { id: sha },
344
repository: { owner: { login: owner }, name: repo },
345
} = context.payload;
346
app.log.info('push');
@@ -366,10 +366,6 @@ module.exports = (app) => {
366
367
action,
368
369
- if (!['closed', 'merged'].includes(action)) {
370
- app.log.info(`Action on pull request. But action ${action} is not appropriate. Skipping...`);
371
- return;
372
- }
373
if (!pullNumber) {
374
app.log.info(`Close pull request cannot be found. Delete dismissed.`);
375
return;
0 commit comments