Add pull_request.synchronize

This commit is contained in:
Kyle Fang
2018-10-23 21:13:01 +08:00
parent 351ec0d2ff
commit 2311a57ebc

View File

@@ -7,7 +7,7 @@ type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
export = (app: Application) => {
app.log("App Loaded");
app.on(["pull_request.opened", "pull_request.edited"], async context => {
app.on(["pull_request.opened", "pull_request.edited", "pull_request.synchronize"], async context => {
const config = await getConfig(context, "pr-title.yml");
if (config && typeof config.regex === "string") {
const pullRequest = context.payload.pull_request;