mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Pull Request actions filter
This commit is contained in:
@@ -201,7 +201,9 @@ export default async function handler(
|
||||
res.status(200).json({ message: "Preview Deployment Closed" });
|
||||
return;
|
||||
}
|
||||
|
||||
// opened or synchronize or reopened
|
||||
if (githubBody?.action === "opened" || githubBody?.action === "synchronize" || githubBody?.action === "reopened") {
|
||||
const repository = githubBody?.repository?.name;
|
||||
const deploymentHash = githubBody?.pull_request?.head?.sha;
|
||||
const branch = githubBody?.pull_request?.base?.ref;
|
||||
@@ -275,6 +277,7 @@ export default async function handler(
|
||||
}
|
||||
return res.status(200).json({ message: "Apps Deployed" });
|
||||
}
|
||||
}
|
||||
|
||||
return res.status(400).json({ message: "No Actions matched" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user