Skip to content
Discussion options

You must be logged in to vote

Yes, watchPaths is currently only evaluated for push events

In Dokploy's GitHub webhook handler (apps/dokploy/pages/api/deploy/github.ts), watchPaths filtering is implemented via shouldDeploy(app.watchPaths, normalizedCommits).

However, this check is only called in the push event block (lines ~130–165). In the pull_request event block (lines ~200–320), Dokploy creates preview deployments for all applications matching the target base branch without evaluating watchPaths, because GitHub's pull_request webhook payload does not include the per-commit modified files array.


Recommended Solution: Use Dokploy's "Preview Labels"

Dokploy natively supports filtering preview deployments by PR labels (…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gngz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants