We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db27ec0 + c4c4b45 commit 75abc47Copy full SHA for 75abc47
apps/dokploy/pages/api/deploy/github.ts
@@ -63,13 +63,16 @@ export default async function handler(
63
const repository = githubBody?.repository?.name;
64
const deploymentTitle = extractCommitMessage(req.headers, req.body);
65
const deploymentHash = extractHash(req.headers, req.body);
66
+ const owner = githubBody?.repository?.owner?.name;
67
+
68
69
const apps = await db.query.applications.findMany({
70
where: and(
71
eq(applications.sourceType, "github"),
72
eq(applications.autoDeploy, true),
73
eq(applications.branch, branchName),
- eq(applications.repository, repository)
74
+ eq(applications.repository, repository),
75
+ eq(applications.owner, owner)
76
),
77
});
78
@@ -103,7 +106,8 @@ export default async function handler(
103
106
eq(compose.sourceType, "github"),
104
107
eq(compose.autoDeploy, true),
105
108
eq(compose.branch, branchName),
- eq(compose.repository, repository)
109
+ eq(compose.repository, repository),
110
+ eq(compose.owner, owner)
111
112
113
0 commit comments