Skip to content

Commit

Permalink
feat: handle edited pr
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Nov 19, 2018
1 parent 16061fc commit c5340c5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/index.js
Expand Up @@ -312,6 +312,16 @@ module.exports = (app) => {
const repoContext = await obtainRepoContext(context);
if (!repoContext) return;

await repoContext.addStatusCheckToLatestCommit(context);
await Promise.all([
editOpenedPr(repoContext, context),
repoContext.addStatusCheckToLatestCommit(context),
]);
});

app.on('pull_request.edited', async (context) => {
const repoContext = await obtainRepoContext(context);
if (!repoContext) return;

await editOpenedPr(repoContext, context);
});
};

0 comments on commit c5340c5

Please sign in to comment.