Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

chore: adding description to imported issues

Andrej Acevski8de21e3ed698
diff --git a/apps/api/src/github-integration/controllers/import-issues.ts b/apps/api/src/github-integration/controllers/import-issues.ts
index cacc8cf91..1e6eb2da5 100644
--- a/apps/api/src/github-integration/controllers/import-issues.ts
+++ b/apps/api/src/github-integration/controllers/import-issues.ts
@@ -40,9 +40,17 @@ export async function importIssues(projectId: string) {
continue;
}
+ const githubIssueUrl = `https://github.com/${githubIntegration.repositoryOwner}/${githubIntegration.repositoryName}/issues/${issue.number}`;
+ let description = issue.body || "";
+ if (description) {
+ description += `\n\nLinked to GitHub issue: ${githubIssueUrl}`;
+ } else {
+ description = `Linked to GitHub issue: ${githubIssueUrl}`;
+ }
+
await db.insert(taskTable).values({
title: issue.title,
- description: issue.body,
+ description,
projectId,
number: issue.number,
status: "to-do",