mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-08 04:55:17 +00:00
fix(application): update deployment comment syntax to use template literals for dynamic content
This commit is contained in:
@@ -576,7 +576,7 @@ export const deployRemotePreviewApplication = async ({
|
|||||||
);
|
);
|
||||||
await updateIssueComment({
|
await updateIssueComment({
|
||||||
...issueParams,
|
...issueParams,
|
||||||
body: "### Dokploy Preview Deployment\n\n$buildingComment",
|
body: `### Dokploy Preview Deployment\n\n${buildingComment}`,
|
||||||
});
|
});
|
||||||
application.appName = previewDeployment.appName;
|
application.appName = previewDeployment.appName;
|
||||||
application.env = `${application.previewEnv}\nDOKPLOY_DEPLOY_URL=${previewDeployment?.domain?.host}`;
|
application.env = `${application.previewEnv}\nDOKPLOY_DEPLOY_URL=${previewDeployment?.domain?.host}`;
|
||||||
@@ -607,7 +607,7 @@ export const deployRemotePreviewApplication = async ({
|
|||||||
);
|
);
|
||||||
await updateIssueComment({
|
await updateIssueComment({
|
||||||
...issueParams,
|
...issueParams,
|
||||||
body: "### Dokploy Preview Deployment\n\n$successComment",
|
body: `### Dokploy Preview Deployment\n\n${successComment}`,
|
||||||
});
|
});
|
||||||
await updateDeploymentStatus(deployment.deploymentId, "done");
|
await updateDeploymentStatus(deployment.deploymentId, "done");
|
||||||
await updatePreviewDeployment(previewDeploymentId, {
|
await updatePreviewDeployment(previewDeploymentId, {
|
||||||
@@ -617,7 +617,7 @@ export const deployRemotePreviewApplication = async ({
|
|||||||
const comment = getIssueComment(application.name, "error", previewDomain);
|
const comment = getIssueComment(application.name, "error", previewDomain);
|
||||||
await updateIssueComment({
|
await updateIssueComment({
|
||||||
...issueParams,
|
...issueParams,
|
||||||
body: "### Dokploy Preview Deployment\n\n$comment",
|
body: `### Dokploy Preview Deployment\n\n${comment}`,
|
||||||
});
|
});
|
||||||
await updateDeploymentStatus(deployment.deploymentId, "error");
|
await updateDeploymentStatus(deployment.deploymentId, "error");
|
||||||
await updatePreviewDeployment(previewDeploymentId, {
|
await updatePreviewDeployment(previewDeploymentId, {
|
||||||
|
|||||||
Reference in New Issue
Block a user