MCPcopy
hub / github.com/Dokploy/dokploy / getIssueComment

Function getIssueComment

packages/server/src/services/github.ts:81–103  ·  view source on GitHub ↗
(
	appName: string,
	status: "success" | "error" | "running" | "initializing",
	previewDomain: string,
)

Source from the content-addressed store, hash-verified

79};
80
81export const getIssueComment = (
82 appName: string,
83 status: "success" | "error" | "running" | "initializing",
84 previewDomain: string,
85) => {
86 let statusMessage = "";
87 if (status === "success") {
88 statusMessage = "✅ Done";
89 } else if (status === "error") {
90 statusMessage = "❌ Failed";
91 } else if (status === "initializing") {
92 statusMessage = "🔄 Building";
93 } else {
94 statusMessage = "🔄 Building";
95 }
96 const finished = `
97| Name | Status | Preview | Updated (UTC) |
98|------------|--------------|-------------------------------------|-----------------------|
99| ${appName} | ${statusMessage} | [Preview URL](${previewDomain}) | ${new Date().toISOString()} |
100`;
101
102 return finished;
103};
104interface CommentExists {
105 owner: string;
106 repository: string;

Callers 4

deployPreviewApplicationFunction · 0.90
createPreviewDeploymentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected