mirror of
https://github.com/zhigang1992/pr-title.git
synced 2026-01-12 08:14:30 +08:00
Add pull_request.synchronize
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user