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.

feat: GitHub integration (#323)

Andrej1457e37b10cd
diff --git a/apps/api/drizzle/0001_natural_robin_chapel.sql b/apps/api/drizzle/0001_natural_robin_chapel.sql
new file mode 100644
index 000000000..255a8cf95
--- /dev/null
+++ b/apps/api/drizzle/0001_natural_robin_chapel.sql
@@ -0,0 +1,13 @@
+CREATE TABLE "github_integration" (
+ "id" text PRIMARY KEY NOT NULL,
+ "project_id" text NOT NULL,
+ "repository_owner" text NOT NULL,
+ "repository_name" text NOT NULL,
+ "installation_id" integer,
+ "is_active" boolean DEFAULT true,
+ "created_at" timestamp DEFAULT now() NOT NULL,
+ "updated_at" timestamp DEFAULT now() NOT NULL,
+ CONSTRAINT "github_integration_project_id_unique" UNIQUE("project_id")
+);
+--> statement-breakpoint
+ALTER TABLE "github_integration" ADD CONSTRAINT "github_integration_project_id_project_id_fk" FOREIGN KEY ("project_id") REFERENCES "public"."project"("id") ON DELETE cascade ON UPDATE cascade;
\ No newline at end of file
diff --git a/apps/api/drizzle/meta/0001_snapshot.json b/apps/api/drizzle/meta/0001_snapshot.json
new file mode 100644
index 000000000..927502204
--- /dev/null
+++ b/apps/api/drizzle/meta/0001_snapshot.json
@@ -0,0 +1,768 @@
+{
+ "id": "d516f340-217e-4840-8e91-65c778e344d1",
+ "prevId": "1ed2e748-68b8-4d66-9d11-c06fba31a8dd",
+ "version": "7",
+ "dialect": "postgresql",
+ "tables": {
+ "public.activity": {
+ "name": "activity",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "task_id": {
+ "name": "task_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "user_email": {
+ "name": "user_email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "activity_task_id_task_id_fk": {
+ "name": "activity_task_id_task_id_fk",
+ "tableFrom": "activity",
+ "tableTo": "task",
+ "columnsFrom": ["task_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ },
+ "activity_user_email_user_email_fk": {
+ "name": "activity_user_email_user_email_fk",
+ "tableFrom": "activity",
+ "tableTo": "user",
+ "columnsFrom": ["user_email"],
+ "columnsTo": ["email"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.github_integration": {
+ "name": "github_integration",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "project_id": {
+ "name": "project_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "repository_owner": {
+ "name": "repository_owner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "repository_name": {
+ "name": "repository_name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "installation_id": {
+ "name": "installation_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is_active": {
+ "name": "is_active",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "github_integration_project_id_project_id_fk": {
+ "name": "github_integration_project_id_project_id_fk",
+ "tableFrom": "github_integration",
+ "tableTo": "project",
+ "columnsFrom": ["project_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "github_integration_project_id_unique": {
+ "name": "github_integration_project_id_unique",
+ "nullsNotDistinct": false,
+ "columns": ["project_id"]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.label": {
+ "name": "label",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "color": {
+ "name": "color",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "task_id": {
+ "name": "task_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "label_task_id_task_id_fk": {
+ "name": "label_task_id_task_id_fk",
+ "tableFrom": "label",
+ "tableTo": "task",
+ "columnsFrom": ["task_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.notification": {
+ "name": "notification",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "user_email": {
+ "name": "user_email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "type": {
+ "name": "type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'info'"
+ },
+ "is_read": {
+ "name": "is_read",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "resource_id": {
+ "name": "resource_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resource_type": {
+ "name": "resource_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "notification_user_email_user_email_fk": {
+ "name": "notification_user_email_user_email_fk",
+ "tableFrom": "notification",
+ "tableTo": "user",
+ "columnsFrom": ["user_email"],
+ "columnsTo": ["email"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.project": {
+ "name": "project",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "workspace_id": {
+ "name": "workspace_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "slug": {
+ "name": "slug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "icon": {
+ "name": "icon",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'Layout'"
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "is_public": {
+ "name": "is_public",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "project_workspace_id_workspace_id_fk": {
+ "name": "project_workspace_id_workspace_id_fk",
+ "tableFrom": "project",
+ "tableTo": "workspace",
+ "columnsFrom": ["workspace_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.session": {
+ "name": "session",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "session_user_id_user_id_fk": {
+ "name": "session_user_id_user_id_fk",
+ "tableFrom": "session",
+ "tableTo": "user",
+ "columnsFrom": ["user_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.task": {
+ "name": "task",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "project_id": {
+ "name": "project_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "position": {
+ "name": "position",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 0
+ },
+ "number": {
+ "name": "number",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 1
+ },
+ "assignee_email": {
+ "name": "assignee_email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'to-do'"
+ },
+ "priority": {
+ "name": "priority",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'low'"
+ },
+ "due_date": {
+ "name": "due_date",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "task_project_id_project_id_fk": {
+ "name": "task_project_id_project_id_fk",
+ "tableFrom": "task",
+ "tableTo": "project",
+ "columnsFrom": ["project_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ },
+ "task_assignee_email_user_email_fk": {
+ "name": "task_assignee_email_user_email_fk",
+ "tableFrom": "task",
+ "tableTo": "user",
+ "columnsFrom": ["assignee_email"],
+ "columnsTo": ["email"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.time_entry": {
+ "name": "time_entry",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "task_id": {
+ "name": "task_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_email": {
+ "name": "user_email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "start_time": {
+ "name": "start_time",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "end_time": {
+ "name": "end_time",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "duration": {
+ "name": "duration",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 0
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "time_entry_task_id_task_id_fk": {
+ "name": "time_entry_task_id_task_id_fk",
+ "tableFrom": "time_entry",
+ "tableTo": "task",
+ "columnsFrom": ["task_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ },
+ "time_entry_user_email_user_email_fk": {
+ "name": "time_entry_user_email_user_email_fk",
+ "tableFrom": "time_entry",
+ "tableTo": "user",
+ "columnsFrom": ["user_email"],
+ "columnsTo": ["email"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.user": {
+ "name": "user",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "user_email_unique": {
+ "name": "user_email_unique",
+ "nullsNotDistinct": false,
+ "columns": ["email"]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.workspace": {
+ "name": "workspace",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner_email": {
+ "name": "owner_email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "workspace_owner_email_user_email_fk": {
+ "name": "workspace_owner_email_user_email_fk",
+ "tableFrom": "workspace",
+ "tableTo": "user",
+ "columnsFrom": ["owner_email"],
+ "columnsTo": ["email"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.workspace_member": {
+ "name": "workspace_member",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "workspace_id": {
+ "name": "workspace_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_email": {
+ "name": "user_email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'member'"
+ },
+ "joined_at": {
+ "name": "joined_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "status": {
+ "name": "status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'pending'"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "workspace_member_workspace_id_workspace_id_fk": {
+ "name": "workspace_member_workspace_id_workspace_id_fk",
+ "tableFrom": "workspace_member",
+ "tableTo": "workspace",
+ "columnsFrom": ["workspace_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "cascade"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ }
+ },
+ "enums": {},
+ "schemas": {},
+ "sequences": {},
+ "roles": {},
+ "policies": {},
+ "views": {},
+ "_meta": {
+ "columns": {},
+ "schemas": {},
+ "tables": {}
+ }
+}
diff --git a/apps/api/drizzle/meta/_journal.json b/apps/api/drizzle/meta/_journal.json
index 5343b386a..2526b3658 100644
--- a/apps/api/drizzle/meta/_journal.json
+++ b/apps/api/drizzle/meta/_journal.json
@@ -8,6 +8,13 @@
"when": 1750083630484,
"tag": "0000_confused_pixie",
"breakpoints": true
+ },
+ {
+ "idx": 1,
+ "version": "7",
+ "when": 1750504871903,
+ "tag": "0001_natural_robin_chapel",
+ "breakpoints": true
}
]
}
diff --git a/apps/api/package.json b/apps/api/package.json
index 469f90b6b..347bb82a3 100644
--- a/apps/api/package.json
+++ b/apps/api/package.json
@@ -1,14 +1,15 @@
{
"name": "@kaneo/api",
- "type": "commonjs",
+ "type": "module",
"main": "./src/index.ts",
"scripts": {
"dev": "tsx watch src/index.ts",
- "build": "esbuild src/index.ts --bundle --platform=node --outdir=dist --format=cjs --external:pg --external:bcrypt --external:mock-aws-s3 --external:aws-sdk --external:nock"
+ "build": "esbuild src/index.ts --bundle --platform=node --outdir=dist --format=esm --packages=external --external:fs --external:path --external:crypto --external:os --external:util --external:stream --external:buffer --external:events --external:url --external:querystring --external:http --external:https --external:net --external:tls --external:zlib"
},
"dependencies": {
"@hono/node-server": "^1.14.4",
"@hono/zod-validator": "^0.5.0",
+ "@octokit/webhooks": "^14.0.2",
"@oslojs/crypto": "^1.0.1",
"@oslojs/encoding": "^1.1.0",
"@paralleldrive/cuid2": "^2.2.2",
@@ -17,6 +18,7 @@
"drizzle-kit": "^0.31.1",
"drizzle-orm": "^0.43.0",
"hono": "^4.7.11",
+ "octokit": "^5.0.3",
"pg": "^8.16.0",
"zod": "^3.25.56"
},
diff --git a/apps/api/src/database/schema.ts b/apps/api/src/database/schema.ts
index 49a514526..3aedab2ea 100644
--- a/apps/api/src/database/schema.ts
+++ b/apps/api/src/database/schema.ts
@@ -174,3 +174,22 @@ export const notificationTable = pgTable("notification", {
resourceType: text("resource_type"),
createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),
});
+
+export const githubIntegrationTable = pgTable("github_integration", {
+ id: text("id")
+ .$defaultFn(() => createId())
+ .primaryKey(),
+ projectId: text("project_id")
+ .notNull()
+ .references(() => projectTable.id, {
+ onDelete: "cascade",
+ onUpdate: "cascade",
+ })
+ .unique(),
+ repositoryOwner: text("repository_owner").notNull(),
+ repositoryName: text("repository_name").notNull(),
+ installationId: integer("installation_id"),
+ isActive: boolean("is_active").default(true),
+ createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),
+ updatedAt: timestamp("updated_at", { mode: "date" }).defaultNow().notNull(),
+});
diff --git a/apps/api/src/github-integration/controllers/create-github-integration.ts b/apps/api/src/github-integration/controllers/create-github-integration.ts
new file mode 100644
index 000000000..9db03c53b
--- /dev/null
+++ b/apps/api/src/github-integration/controllers/create-github-integration.ts
@@ -0,0 +1,70 @@
+import { eq } from "drizzle-orm";
+import { HTTPException } from "hono/http-exception";
+import db from "../../database";
+import { githubIntegrationTable, projectTable } from "../../database/schema";
+import githubApp from "../utils/create-github-app";
+
+async function createGithubIntegration({
+ projectId,
+ repositoryOwner,
+ repositoryName,
+}: {
+ projectId: string;
+ repositoryOwner: string;
+ repositoryName: string;
+}) {
+ const project = await db.query.projectTable.findFirst({
+ where: eq(projectTable.id, projectId),
+ });
+
+ if (!project) {
+ throw new HTTPException(404, { message: "Project not found" });
+ }
+
+ let installationId: number | null = null;
+ try {
+ const { data: installation } =
+ await githubApp.octokit.rest.apps.getRepoInstallation({
+ owner: repositoryOwner,
+ repo: repositoryName,
+ });
+ installationId = installation.id;
+ } catch (error) {
+ console.warn("Could not get installation ID for repository:", error);
+ }
+
+ const existingIntegration = await db.query.githubIntegrationTable.findFirst({
+ where: eq(githubIntegrationTable.projectId, projectId),
+ });
+
+ if (existingIntegration) {
+ const [updatedIntegration] = await db
+ .update(githubIntegrationTable)
+ .set({
+ repositoryOwner,
+ repositoryName,
+ installationId,
+ isActive: true,
+ updatedAt: new Date(),
+ })
+ .where(eq(githubIntegrationTable.projectId, projectId))
+ .returning();
+
+ return updatedIntegration;
+ }
+
+ const [newIntegration] = await db
+ .insert(githubIntegrationTable)
+ .values({
+ projectId,
+ repositoryOwner,
+ repositoryName,
+ installationId,
+ isActive: true,
+ })
+ .returning();
+
+ return newIntegration;
+}
+
+export default createGithubIntegration;
diff --git a/apps/api/src/github-integration/controllers/delete-github-integration.ts b/apps/api/src/github-integration/controllers/delete-github-integration.ts
new file mode 100644
index 000000000..81d84c268
--- /dev/null
+++ b/apps/api/src/github-integration/controllers/delete-github-integration.ts
@@ -0,0 +1,22 @@
+import { eq } from "drizzle-orm";
+import { HTTPException } from "hono/http-exception";
+import db from "../../database";
+import { githubIntegrationTable } from "../../database/schema";
+
+async function deleteGithubIntegration(projectId: string) {
+ const existingIntegration = await db.query.githubIntegrationTable.findFirst({
+ where: eq(githubIntegrationTable.projectId, projectId),
+ });
+
+ if (!existingIntegration) {
+ throw new HTTPException(404, { message: "GitHub integration not found" });
+ }
+
+ await db
+ .delete(githubIntegrationTable)
+ .where(eq(githubIntegrationTable.projectId, projectId));
+
+ return { success: true, message: "GitHub integration deleted" };
+}
+
+export default deleteGithubIntegration;
diff --git a/apps/api/src/github-integration/controllers/get-github-integration-by-repository-id.ts b/apps/api/src/github-integration/controllers/get-github-integration-by-repository-id.ts
new file mode 100644
index 000000000..8f75333c5
--- /dev/null
+++ b/apps/api/src/github-integration/controllers/get-github-integration-by-repository-id.ts
@@ -0,0 +1,19 @@
+import { and, eq } from "drizzle-orm";
+import db from "../../database";
+import { githubIntegrationTable } from "../../database/schema";
+
+async function getGithubIntegrationByRepositoryId(
+ repositoryOwner: string,
+ repositoryName: string,
+) {
+ const integration = await db.query.githubIntegrationTable.findFirst({
+ where: and(
+ eq(githubIntegrationTable.repositoryOwner, repositoryOwner),
+ eq(githubIntegrationTable.repositoryName, repositoryName),
+ ),
+ });
+
+ return integration;
+}
+
+export default getGithubIntegrationByRepositoryId;
diff --git a/apps/api/src/github-integration/controllers/get-github-integration.ts b/apps/api/src/github-integration/controllers/get-github-integration.ts
new file mode 100644
index 000000000..cf119ee95
--- /dev/null
+++ b/apps/api/src/github-integration/controllers/get-github-integration.ts
@@ -0,0 +1,20 @@
+import { eq } from "drizzle-orm";
+import { HTTPException } from "hono/http-exception";
+import db from "../../database";
+import { githubIntegrationTable } from "../../database/schema";
+
+async function getGithubIntegration(projectId: string) {
+ const integration = await db.query.githubIntegrationTable.findFirst({
+ where: eq(githubIntegrationTable.projectId, projectId),
+ });
+
+ if (!integration) {
+ throw new HTTPException(404, {
+ message: "GitHub integration not found",
+ });
+ }
+
+ return integration;
+}
+
+export default getGithubIntegration;
diff --git a/apps/api/src/github-integration/controllers/list-user-repositories.ts b/apps/api/src/github-integration/controllers/list-user-repositories.ts
new file mode 100644
index 000000000..e2c261d00
--- /dev/null
+++ b/apps/api/src/github-integration/controllers/list-user-repositories.ts
@@ -0,0 +1,114 @@
+import { HTTPException } from "hono/http-exception";
+import githubApp from "../utils/create-github-app";
+
+async function listUserRepositories() {
+ try {
+ const { data: installations } =
+ await githubApp.octokit.rest.apps.listInstallations();
+
+ const installationsWithRepos = await Promise.all(
+ installations.map(async (installation) => {
+ try {
+ const installationOctokit = await githubApp.getInstallationOctokit(
+ installation.id,
+ );
+ const { data: repos } =
+ await installationOctokit.rest.apps.listReposAccessibleToInstallation(
+ {
+ per_page: 500,
+ },
+ );
+
+ return {
+ id: installation.id,
+ account: installation.account
+ ? {
+ login: installation.account.login,
+ type: installation.account.type,
+ }
+ : null,
+ repositories: repos.repositories.map((repo) => repo.full_name),
+ };
+ } catch (error) {
+ console.warn(
+ `Failed to get repositories for installation ${installation.id}:`,
+ error,
+ );
+ return {
+ id: installation.id,
+ account: installation.account
+ ? {
+ login: installation.account.login,
+ type: installation.account.type,
+ }
+ : null,
+ repositories: [],
+ };
+ }
+ }),
+ );
+
+ const allRepositories = [];
+
+ for (const installation of installations) {
+ try {
+ const installationOctokit = await githubApp.getInstallationOctokit(
+ installation.id,
+ );
+ const { data: repos } =
+ await installationOctokit.rest.apps.listReposAccessibleToInstallation();
+
+ const mappedRepos = repos.repositories.map((repo) => ({
+ id: repo.id,
+ name: repo.name,
+ full_name: repo.full_name,
+ private: repo.private,
+ owner: {
+ login: repo.owner.login,
+ avatar_url: repo.owner.avatar_url,
+ type: repo.owner.type,
+ },
+ description: repo.description,
+ html_url: repo.html_url,
+ permissions: repo.permissions
+ ? {
+ admin: repo.permissions.admin,
+ push: repo.permissions.push,
+ pull: repo.permissions.pull,
+ }
+ : undefined,
+ updated_at: repo.updated_at || new Date().toISOString(),
+ }));
+
+ allRepositories.push(...mappedRepos);
+ } catch (error) {
+ console.warn(
+ `Failed to get repositories for installation ${installation.id}:`,
+ error,
+ );
+ }
+ }
+
+ const uniqueRepositories = allRepositories
+ .filter(
+ (repo, index, self) =>
+ index === self.findIndex((r) => r.id === repo.id),
+ )
+ .sort(
+ (a, b) =>
+ new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime(),
+ );
+
+ return {
+ repositories: uniqueRepositories,
+ installations: installationsWithRepos,
+ };
+ } catch (error) {
+ console.error("Failed to list user repositories:", error);
+ throw new HTTPException(500, {
+ message: "Failed to fetch repositories from GitHub",
+ });
+ }
+}
+
+export default listUserRepositories;
diff --git a/apps/api/src/github-integration/controllers/verify-github-installation.ts b/apps/api/src/github-integration/controllers/verify-github-installation.ts
new file mode 100644
index 000000000..db32b1e3e
--- /dev/null
+++ b/apps/api/src/github-integration/controllers/verify-github-installation.ts
@@ -0,0 +1,162 @@
+import { HTTPException } from "hono/http-exception";
+import githubApp from "../utils/create-github-app";
+
+type VerificationResult = {
+ isInstalled: boolean;
+ installationId: number | null;
+ repositoryExists: boolean;
+ repositoryPrivate: boolean | null;
+ permissions: Record<string, string> | null;
+ message: string;
+ installationUrl?: string;
+ settingsUrl?: string;
+ hasRequiredPermissions?: boolean;
+ missingPermissions?: string[];
+};
+
+async function verifyGithubInstallation({
+ repositoryOwner,
+ repositoryName,
+}: {
+ repositoryOwner: string;
+ repositoryName: string;
+}): Promise<VerificationResult> {
+ try {
+ const { data: installation } =
+ await githubApp.octokit.rest.apps.getRepoInstallation({
+ owner: repositoryOwner,
+ repo: repositoryName,
+ });
+
+ const octokit = await githubApp.getInstallationOctokit(installation.id);
+ const { data: repo } = await octokit.rest.repos.get({
+ owner: repositoryOwner,
+ repo: repositoryName,
+ });
+
+ const requiredPermissions = ["issues"];
+ const hasRequiredPermissions = checkPermissions(
+ installation.permissions,
+ requiredPermissions,
+ );
+ const missingPermissions = getMissingPermissions(
+ installation.permissions,
+ requiredPermissions,
+ );
+
+ if (!hasRequiredPermissions) {
+ return {
+ isInstalled: true,
+ installationId: installation.id,
+ repositoryExists: true,
+ repositoryPrivate: repo.private,
+ permissions: installation.permissions,
+ hasRequiredPermissions: false,
+ missingPermissions,
+ message: `GitHub App is installed but missing required permissions: ${missingPermissions.join(", ")}`,
+ settingsUrl: `https://github.com/settings/installations/${installation.id}`,
+ installationUrl: process.env.GITHUB_APP_NAME
+ ? `https://github.com/apps/${process.env.GITHUB_APP_NAME}/installations/new/permissions?target_id=${repo.id}`
+ : undefined,
+ };
+ }
+
+ return {
+ isInstalled: true,
+ installationId: installation.id,
+ repositoryExists: true,
+ repositoryPrivate: repo.private,
+ permissions: installation.permissions,
+ hasRequiredPermissions: true,
+ message:
+ "GitHub App is properly installed and has all required permissions",
+ settingsUrl: `https://github.com/settings/installations/${installation.id}`,
+ };
+ } catch (error) {
+ const githubError = error as { status?: number; message?: string };
+
+ if (githubError.status === 404) {
+ try {
+ await githubApp.octokit.rest.repos.get({
+ owner: repositoryOwner,
+ repo: repositoryName,
+ });
+
+ const repoId = await getRepositoryId(repositoryOwner, repositoryName);
+
+ return {
+ isInstalled: false,
+ installationId: null,
+ repositoryExists: true,
+ repositoryPrivate: null,
+ permissions: null,
+ hasRequiredPermissions: false,
+ message: "Repository exists but GitHub App is not installed",
+ installationUrl: process.env.GITHUB_APP_NAME
+ ? `https://github.com/apps/${process.env.GITHUB_APP_NAME}/installations/new/permissions?target_id=${repoId}`
+ : undefined,
+ settingsUrl: process.env.GITHUB_APP_NAME
+ ? `https://github.com/apps/${process.env.GITHUB_APP_NAME}`
+ : undefined,
+ };
+ } catch (repoError) {
+ const repoGithubError = repoError as { status?: number };
+
+ if (repoGithubError.status === 404) {
+ return {
+ isInstalled: false,
+ installationId: null,
+ repositoryExists: false,
+ repositoryPrivate: null,
+ permissions: null,
+ hasRequiredPermissions: false,
+ message: "Repository does not exist or is not accessible",
+ };
+ }
+ throw repoError;
+ }
+ }
+
+ throw new HTTPException(500, {
+ message: `Failed to verify GitHub installation: ${githubError.message || "Unknown error"}`,
+ });
+ }
+}
+
+function checkPermissions(
+ permissions: Record<string, string> | undefined,
+ required: string[],
+): boolean {
+ if (!permissions) return false;
+
+ return required.every((perm) => {
+ const permissionLevel = permissions[perm];
+ return permissionLevel === "write" || permissionLevel === "admin";
+ });
+}
+
+function getMissingPermissions(
+ permissions: Record<string, string> | undefined,
+ required: string[],
+): string[] {
+ if (!permissions) return required;
+
+ return required.filter((perm) => {
+ const permissionLevel = permissions[perm];
+ return permissionLevel !== "write" && permissionLevel !== "admin";
+ });
+}
+
+async function getRepositoryId(owner: string, repo: string): Promise<number> {
+ try {
+ const { data } = await githubApp.octokit.rest.repos.get({
+ owner,
+ repo,
+ });
+ return data.id;
+ } catch {
+ return 0;
+ }
+}
+
+export default verifyGithubInstallation;
diff --git a/apps/api/src/github-integration/index.ts b/apps/api/src/github-integration/index.ts
new file mode 100644
index 000000000..8b36ab90a
--- /dev/null
+++ b/apps/api/src/github-integration/index.ts
@@ -0,0 +1,129 @@
+import { zValidator } from "@hono/zod-validator";
+import { Hono } from "hono";
+import { z } from "zod";
+import { subscribeToEvent } from "../events";
+import createGithubIntegration from "./controllers/create-github-integration";
+import deleteGithubIntegration from "./controllers/delete-github-integration";
+import getGithubIntegration from "./controllers/get-github-integration";
+import listUserRepositories from "./controllers/list-user-repositories";
+import verifyGithubInstallation from "./controllers/verify-github-installation";
+import githubApp from "./utils/create-github-app";
+import { handleIssueOpened } from "./utils/issue-opened";
+import { handleTaskCreated } from "./utils/task-created";
+
+githubApp.webhooks.on("issues.opened", handleIssueOpened);
+
+subscribeToEvent<{
+ taskId: string;
+ userEmail: string;
+ title: string;
+ description: string;
+ priority: string;
+ status: string;
+ number: number;
+ projectId: string;
+}>("task.created", handleTaskCreated);
+
+const githubIntegration = new Hono()
+ .get("/app-info", async (c) => {
+ return c.json({
+ appName: process.env.GITHUB_APP_NAME || null,
+ });
+ })
+ .get("/repositories", async (c) => {
+ const repositories = await listUserRepositories();
+ return c.json(repositories);
+ })
+ .post(
+ "/verify",
+ zValidator(
+ "json",
+ z.object({
+ repositoryOwner: z.string().min(1),
+ repositoryName: z.string().min(1),
+ }),
+ ),
+ async (c) => {
+ const { repositoryOwner, repositoryName } = c.req.valid("json");
+
+ const verification = await verifyGithubInstallation({
+ repositoryOwner,
+ repositoryName,
+ });
+
+ return c.json(verification);
+ },
+ )
+ .get(
+ "/project/:projectId",
+ zValidator("param", z.object({ projectId: z.string() })),
+ async (c) => {
+ const { projectId } = c.req.valid("param");
+ const integration = await getGithubIntegration(projectId);
+ return c.json(integration);
+ },
+ )
+ .post(
+ "/project/:projectId",
+ zValidator("param", z.object({ projectId: z.string() })),
+ zValidator(
+ "json",
+ z.object({
+ repositoryOwner: z.string().min(1),
+ repositoryName: z.string().min(1),
+ }),
+ ),
+ async (c) => {
+ const { projectId } = c.req.valid("param");
+ const { repositoryOwner, repositoryName } = c.req.valid("json");
+
+ const integration = await createGithubIntegration({
+ projectId,
+ repositoryOwner,
+ repositoryName,
+ });
+
+ return c.json(integration);
+ },
+ )
+ .delete(
+ "/project/:projectId",
+ zValidator("param", z.object({ projectId: z.string() })),
+ async (c) => {
+ const { projectId } = c.req.valid("param");
+ const result = await deleteGithubIntegration(projectId);
+ return c.json(result);
+ },
+ )
+ .post("/webhook", async (c) => {
+ try {
+ const arrayBuffer = await c.req.arrayBuffer();
+ const body = Buffer.from(arrayBuffer).toString("utf8");
+
+ const signature = c.req.header("x-hub-signature-256");
+ if (!signature) {
+ return c.json({ error: "Missing signature" }, 400);
+ }
+
+ const eventName = c.req.header("x-github-event");
+ if (!eventName) {
+ return c.json({ error: "Missing event name" }, 400);
+ }
+
+ const deliveryId = c.req.header("x-github-delivery") || "";
+
+ await githubApp.webhooks.verifyAndReceive({
+ id: deliveryId,
+ name: eventName as "issues" | "pull_request" | "push" | string,
+ signature,
+ payload: body,
+ });
+
+ return c.json({ status: "success" });
+ } catch (error) {
+ console.error("Webhook processing error:", error);
+ return c.json({ error: "Webhook processing failed" }, 400);
+ }
+ });
+
+export default githubIntegration;
diff --git a/apps/api/src/github-integration/utils/create-github-app.ts b/apps/api/src/github-integration/utils/create-github-app.ts
new file mode 100644
index 000000000..8dcda1778
--- /dev/null
+++ b/apps/api/src/github-integration/utils/create-github-app.ts
@@ -0,0 +1,25 @@
+import dotenv from "dotenv";
+import { App } from "octokit";
+
+dotenv.config();
+
+if (
+ !process.env.GITHUB_APP_ID ||
+ !process.env.GITHUB_PRIVATE_KEY ||
+ !process.env.GITHUB_WEBHOOK_SECRET
+) {
+ throw new Error(
+ "GITHUB_APP_ID, GITHUB_PRIVATE_KEY and GITHUB_WEBHOOK_SECRET must be set",
+ );
+}
+
+const githubApp: App = new App({
+ appId: process.env.GITHUB_APP_ID,
+ privateKey: process.env.GITHUB_PRIVATE_KEY,
+
+ webhooks: {
+ secret: process.env.GITHUB_WEBHOOK_SECRET,
+ },
+});
+
+export default githubApp;
diff --git a/apps/api/src/github-integration/utils/extract-issue-priority.ts b/apps/api/src/github-integration/utils/extract-issue-priority.ts
new file mode 100644
index 000000000..f2c555592
--- /dev/null
+++ b/apps/api/src/github-integration/utils/extract-issue-priority.ts
@@ -0,0 +1,17 @@
+type GitHubLabel = string | { name?: string };
+
+export function extractIssuePriority(
+ labels: GitHubLabel[] | undefined,
+): string {
+ if (!labels) return "medium";
+
+ const priorityLabels = labels
+ .map((label) => (typeof label === "string" ? label : label?.name))
+ .filter((name) => name?.startsWith("priority:"));
+
+ const firstPriorityLabel = priorityLabels[0];
+ const priority = firstPriorityLabel?.replace("priority:", "") || "medium";
+
+ const validPriorities = ["low", "medium", "high", "urgent"];
+ return validPriorities.includes(priority) ? priority : "medium";
+}
diff --git a/apps/api/src/github-integration/utils/format-github-comment.ts b/apps/api/src/github-integration/utils/format-github-comment.ts
new file mode 100644
index 000000000..2a6100836
--- /dev/null
+++ b/apps/api/src/github-integration/utils/format-github-comment.ts
@@ -0,0 +1,23 @@
+export function formatGitHubComment({
+ id,
+ priority,
+ status,
+ title,
+}: {
+ id: string;
+ priority: string;
+ status: string;
+ title: string;
+}) {
+ return `🎯 **Task created** - ${title}
+<details>
+<summary>Task Details</summary>
+
+- **Task ID:** ${id}
+- **Priority:** ${priority}
+- **Status:** ${status}
+
+
+*This issue is automatically synchronized with your Kaneo project.*
+</details>`;
+}
diff --git a/apps/api/src/github-integration/utils/format-task-description.ts b/apps/api/src/github-integration/utils/format-task-description.ts
new file mode 100644
index 000000000..b6d9dc478
--- /dev/null
+++ b/apps/api/src/github-integration/utils/format-task-description.ts
@@ -0,0 +1,11 @@
+export function formatTaskDescription(payload: {
+ number: number;
+ body: string | null;
+ html_url: string;
+ user: { login: string } | null;
+ repository: {
+ full_name: string;
+ };
+}): string {
+ return `${payload.body || "No description provided"}`;
+}
diff --git a/apps/api/src/github-integration/utils/issue-opened.ts b/apps/api/src/github-integration/utils/issue-opened.ts
new file mode 100644
index 000000000..28f44b0f7
--- /dev/null
+++ b/apps/api/src/github-integration/utils/issue-opened.ts
@@ -0,0 +1,76 @@
+import type {
+ EmitterWebhookEvent,
+ EmitterWebhookEventName,
+} from "@octokit/webhooks";
+import type { Octokit } from "octokit";
+import createTask from "../../task/controllers/create-task";
+import getGithubIntegrationByRepositoryId from "../controllers/get-github-integration-by-repository-id";
+import { extractIssuePriority } from "./extract-issue-priority";
+import { formatGitHubComment } from "./format-github-comment";
+import { formatTaskDescription } from "./format-task-description";
+
+export type HandlerFunction<
+ TName extends EmitterWebhookEventName,
+ TTransformed = unknown,
+> = (event: EmitterWebhookEvent<TName> & TTransformed) => void;
+
+export const handleIssueOpened: HandlerFunction<
+ "issues.opened",
+ { octokit: Octokit }
+> = async ({ payload, octokit }): Promise<void> => {
+ try {
+ if (payload.issue.title.startsWith("[Kaneo]")) {
+ console.log("Skipping Kaneo-created issue to avoid loop");
+ return;
+ }
+
+ const integration = await getGithubIntegrationByRepositoryId(
+ payload.repository.owner.login,
+ payload.repository.name,
+ );
+
+ if (!integration || !integration.isActive) {
+ console.log(
+ "No active Kaneo integration found for repository:",
+ payload.repository.full_name,
+ );
+ return;
+ }
+
+ const taskPriority = extractIssuePriority(payload.issue.labels);
+
+ const task = await createTask({
+ projectId: integration.projectId,
+ title: payload.issue.title,
+ description: formatTaskDescription({
+ number: payload.issue.number,
+ body: payload.issue.body,
+ html_url: payload.issue.html_url,
+ user: payload.issue.user,
+ repository: payload.repository,
+ }),
+ status: "to-do",
+ priority: taskPriority,
+ dueDate: new Date(),
+ userEmail: undefined,
+ });
+
+ try {
+ await octokit.rest.issues.createComment({
+ owner: payload.repository.owner.login,
+ repo: payload.repository.name,
+ issue_number: payload.issue.number,
+ body: formatGitHubComment({
+ id: task.id,
+ title: payload.issue.title,
+ priority: task.priority || "medium",
+ status: task.status || "to-do",
+ }),
+ });
+ } catch (commentError) {
+ console.error("Failed to add comment to GitHub issue:", commentError);
+ }
+ } catch (error) {
+ console.error("Failed to create Kaneo task from GitHub issue:", error);
+ }
+};
diff --git a/apps/api/src/github-integration/utils/task-created.ts b/apps/api/src/github-integration/utils/task-created.ts
new file mode 100644
index 000000000..b33fa2cfb
--- /dev/null
+++ b/apps/api/src/github-integration/utils/task-created.ts
@@ -0,0 +1,74 @@
+import getGithubIntegration from "../controllers/get-github-integration";
+import githubApp from "./create-github-app";
+
+export async function handleTaskCreated(data: {
+ taskId: string;
+ userEmail: string;
+ title: string;
+ description: string;
+ priority: string;
+ status: string;
+ number: number;
+ projectId: string;
+}) {
+ const {
+ taskId,
+ userEmail,
+ title,
+ description,
+ priority,
+ status,
+ number,
+ projectId,
+ } = data;
+
+ try {
+ const integration = await getGithubIntegration(projectId);
+
+ if (!integration || !integration.isActive) {
+ console.log("No active GitHub integration found for project:", projectId);
+ return;
+ }
+
+ const { repositoryOwner, repositoryName } = integration;
+ console.log(
+ "Creating GitHub issue for repository:",
+ `${repositoryOwner}/${repositoryName}`,
+ );
+
+ let installationId = integration.installationId;
+
+ if (!installationId) {
+ const { data: installation } =
+ await githubApp.octokit.rest.apps.getRepoInstallation({
+ owner: repositoryOwner,
+ repo: repositoryName,
+ });
+ installationId = installation.id;
+ }
+
+ const octokit = await githubApp.getInstallationOctokit(installationId);
+
+ await octokit.rest.issues.create({
+ owner: repositoryOwner,
+ repo: repositoryName,
+ title: `[Kaneo] ${title}`,
+ body: `**Task created in Kaneo**
+
+**Description:** ${description || "No description provided"}
+
+**Details:**
+- Task ID: ${taskId}
+- Status: ${status}
+- Priority: ${priority || "Not set"}
+- Task Number: #${number}
+- Assigned to: ${userEmail || "Unassigned"}
+
+---
+*This issue was automatically created from Kaneo task management system.*`,
+ labels: ["kaneo", `priority:${priority || "low"}`, `status:${status}`],
+ });
+ } catch (error) {
+ console.error("Failed to create GitHub issue:", error);
+ }
+}
diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts
index ca8269258..c72103386 100644
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@ -5,6 +5,7 @@ import { getCookie } from "hono/cookie";
import { cors } from "hono/cors";
import activity from "./activity";
import db from "./database";
+import githubIntegration from "./github-integration";
import label from "./label";
import { auth } from "./middlewares/auth";
import notification from "./notification";
@@ -30,6 +31,11 @@ app.use(
}),
);
+const githubIntegrationRoute = app.route(
+ "/github-integration",
+ githubIntegration,
+);
+
const publicProjectRoute = app.get("/public-project/:id", async (c) => {
const { id } = c.req.param();
const project = await getPublicProject(id);
@@ -120,4 +126,5 @@ export type AppType =
| typeof timeEntryRoute
| typeof labelRoute
| typeof notificationRoute
- | typeof publicProjectRoute;
+ | typeof publicProjectRoute
+ | typeof githubIntegrationRoute;
diff --git a/apps/api/src/task/controllers/create-task.ts b/apps/api/src/task/controllers/create-task.ts
index 680766900..f6be287f8 100644
--- a/apps/api/src/task/controllers/create-task.ts
+++ b/apps/api/src/task/controllers/create-task.ts
@@ -50,6 +50,7 @@ async function createTask({
}
await publishEvent("task.created", {
+ ...createdTask,
taskId: createdTask.id,
userEmail: createdTask.userEmail ?? "",
type: "create",
diff --git a/apps/docs/content/docs/index.mdx b/apps/docs/content/docs/index.mdx
index 1d9da1b16..cc40097e0 100644
--- a/apps/docs/content/docs/index.mdx
+++ b/apps/docs/content/docs/index.mdx
@@ -155,12 +155,13 @@ Contact us on [Discord](https://discord.gg/rU4tSyhXXU) if you need help with the
## Next Steps
-Now that you have Kaneo running, explore these deployment options for production:
+Now that you have Kaneo running, explore these features and deployment options:
+- **[GitHub Integration](/docs/integrations/github)** - Automatically create GitHub issues when tasks are created
- **[Deploy with Nginx](/docs/deployments/nginx)** - Set up a reverse proxy with SSL
- **[Deploy with Traefik](/docs/deployments/traefik)** - Modern reverse proxy with automatic HTTPS
- **[Kubernetes Deployment](/docs/deployments/kubernetes)** - Scalable container orchestration
-- **[Core Concepts](/docs/concepts/overview)** - Learn about Kaneo's architecture and features
+- **[Terminology](/docs/terminology)** - Learn about Kaneo's core concepts and features
## Getting Help
diff --git a/apps/docs/content/docs/integrations/github.mdx b/apps/docs/content/docs/integrations/github.mdx
new file mode 100644
index 000000000..0c6b54d35
--- /dev/null
+++ b/apps/docs/content/docs/integrations/github.mdx
@@ -0,0 +1,5 @@
+---
+title: GitHub Integration
+description: Automatically create GitHub issues when tasks are created in Kaneo. Connect your projects to GitHub repositories for seamless issue tracking and project management integration.
+icon: Github
+---
diff --git a/apps/docs/content/docs/integrations/github/configuration.mdx b/apps/docs/content/docs/integrations/github/configuration.mdx
new file mode 100644
index 000000000..09ce6e324
--- /dev/null
+++ b/apps/docs/content/docs/integrations/github/configuration.mdx
@@ -0,0 +1,229 @@
+---
+title: Configuration & Setup
+description: Configure Kaneo with your GitHub App credentials and connect projects to repositories. Includes Docker Compose and Kubernetes examples.
+icon: Cog
+---
+
+import { Step, Steps } from 'fumadocs-ui/components/steps';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+This guide covers configuring Kaneo with your GitHub App credentials and connecting projects to repositories.
+
+<Callout type="info">
+Make sure you've completed the [GitHub App setup](/docs/integrations/github/setup) before proceeding.
+</Callout>
+
+## Environment Variables
+
+Add the following environment variables to your Kaneo deployment:
+
+```bash
+# GitHub App Configuration
+GITHUB_APP_ID=123456
+GITHUB_CLIENT_ID=Iv1.abc123def456
+GITHUB_CLIENT_SECRET=abc123def456ghi789jkl012mno345pqr678stu
+GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEA...
+[Full contents of your private key]
+...
+-----END RSA PRIVATE KEY-----"
+GITHUB_WEBHOOK_SECRET=your-webhook-secret-here
+
+# Optional: GitHub App Name for installation URLs
+GITHUB_APP_NAME=kaneo-your-instance-name
+```
+
+### Variable Reference
+
+| Variable | Description | Required | Example |
+|----------|-------------|----------|---------|
+| `GITHUB_APP_ID` | Your GitHub App's ID | ✅ | `123456` |
+| `GITHUB_CLIENT_ID` | OAuth client ID from your app | ✅ | `Iv1.abc123def456` |
+| `GITHUB_CLIENT_SECRET` | OAuth client secret | ✅ | `abc123def456ghi789jkl012mno345pqr678stu` |
+| `GITHUB_PRIVATE_KEY` | Full private key content (with newlines) | ✅ | `-----BEGIN RSA...` |
+| `GITHUB_WEBHOOK_SECRET` | Secret for webhook verification | ✅ | `your-secret` |
+| `GITHUB_APP_NAME` | App name for installation URLs | ⚠️ | `kaneo-mycompany` |
+
+<Callout type="warning">
+`GITHUB_APP_NAME` is optional but recommended. It's used to generate direct installation links in the UI.
+</Callout>
+
+## Deployment Examples
+
+### Docker Compose
+
+Update your `compose.yml` file:
+
+```yaml
+services:
+ backend:
+ image: ghcr.io/usekaneo/api:latest
+ environment:
+ # ... other environment variables
+ GITHUB_APP_ID: "123456"
+ GITHUB_CLIENT_ID: "Iv1.abc123def456"
+ GITHUB_CLIENT_SECRET: "abc123def456ghi789jkl012mno345pqr678stu"
+ GITHUB_PRIVATE_KEY: |
+ -----BEGIN RSA PRIVATE KEY-----
+ MIIEpAIBAAKCAQEA...
+ [Full contents of your private key]
+ ...
+ -----END RSA PRIVATE KEY-----
+ GITHUB_WEBHOOK_SECRET: "your-webhook-secret-here"
+ GITHUB_APP_NAME: "kaneo-mycompany"
+ # ... rest of configuration
+```
+
+<Callout type="tip">
+Use the `|` YAML syntax for multi-line environment variables like the private key.
+</Callout>
+
+### Kubernetes
+
+Create a secret for your GitHub credentials:
+
+```yaml
+apiVersion: v1
+kind: Secret
+metadata:
+ name: github-integration
+ namespace: kaneo
+type: Opaque
+stringData:
+ GITHUB_APP_ID: "123456"
+ GITHUB_CLIENT_ID: "Iv1.abc123def456"
+ GITHUB_CLIENT_SECRET: "abc123def456ghi789jkl012mno345pqr678stu"
+ GITHUB_PRIVATE_KEY: |
+ -----BEGIN RSA PRIVATE KEY-----
+ MIIEpAIBAAKCAQEA...
+ [Full contents of your private key]
+ ...
+ -----END RSA PRIVATE KEY-----
+ GITHUB_WEBHOOK_SECRET: "your-webhook-secret-here"
+ GITHUB_APP_NAME: "kaneo-mycompany"
+```
+
+Then reference it in your deployment:
+
+```yaml
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: kaneo-backend
+spec:
+ template:
+ spec:
+ containers:
+ - name: backend
+ image: ghcr.io/usekaneo/api:latest
+ envFrom:
+ - secretRef:
+ name: github-integration
+```
+
+### Environment File
+
+For development or simple deployments, create a `.env` file:
+
+```bash
+# .env file
+GITHUB_APP_ID=123456
+GITHUB_CLIENT_ID=Iv1.abc123def456
+GITHUB_CLIENT_SECRET=abc123def456ghi789jkl012mno345pqr678stu
+GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEA...
+[Full contents of your private key]
+...
+-----END RSA PRIVATE KEY-----"
+GITHUB_WEBHOOK_SECRET=your-webhook-secret-here
+GITHUB_APP_NAME=kaneo-mycompany
+```
+
+## Connecting Repositories
+
+Once your environment variables are configured and your backend is restarted, you can connect projects to GitHub repositories.
+
+<Steps>
+<Step>
+**Navigate to Project Settings**
+
+1. Open your Kaneo project
+2. Go to **Project Settings**
+3. Find the **GitHub Integration** section
+</Step>
+
+<Step>
+**Connect Repository**
+
+You have two options to connect a repository:
+
+**Option A: Browse Repositories**
+1. Click "Browse Repositories"
+2. Select from repositories where your GitHub App is installed
+3. Click on the desired repository
+
+**Option B: Manual Entry**
+1. Enter the **Repository Owner** (username or organization)
+2. Enter the **Repository Name**
+3. Click "Verify Installation"
+</Step>
+
+<Step>
+**Verify and Connect**
+
+1. Kaneo will verify that your GitHub App has access
+2. If successful, click "Connect Repository"
+3. You should see a green "Connected" status
+
+<Callout type="success">
+Once connected, new tasks created in this project will automatically generate GitHub issues!
+</Callout>
+</Step>
+</Steps>
+
+## Testing the Integration
+
+After connecting a repository, test the integration:
+
+<Steps>
+<Step>
+**Create a Test Task**
+
+Create a new task in your connected Kaneo project with:
+- A clear title
+- A description
+- Set priority and status
+</Step>
+
+<Step>
+**Check GitHub**
+
+Navigate to your connected GitHub repository and check if:
+- A new issue was created
+- The issue title starts with `[Kaneo]`
+- The issue has appropriate labels (`kaneo`, `priority:*`, `status:*`)
+- The issue body contains task details
+</Step>
+
+</Steps>
+
+## Advanced Configuration
+
+### Multiple Organizations
+If you need to connect repositories from multiple GitHub organizations:
+
+1. Install your GitHub App on each organization
+2. Grant appropriate permissions for each organization
+3. Each Kaneo project can connect to any repository where your app is installed
+
+### Custom Labels
+Currently, Kaneo uses these default labels:
+- `kaneo` - All issues created by Kaneo
+- `priority:high|medium|low` - Based on task priority
+- `status:todo|in-progress|done` - Based on task status
+
+Future versions will support custom label configurations.
+
+---
+
+**Having issues?** Check our [troubleshooting guide](/docs/integrations/github/troubleshooting) for common problems and solutions.
\ No newline at end of file
diff --git a/apps/docs/content/docs/integrations/github/meta.json b/apps/docs/content/docs/integrations/github/meta.json
new file mode 100644
index 000000000..a60b86d57
--- /dev/null
+++ b/apps/docs/content/docs/integrations/github/meta.json
@@ -0,0 +1,5 @@
+{
+ "title": "GitHub",
+ "icon": "Github",
+ "pages": ["setup", "configuration", "troubleshooting"]
+}
diff --git a/apps/docs/content/docs/integrations/github/setup.mdx b/apps/docs/content/docs/integrations/github/setup.mdx
new file mode 100644
index 000000000..ecf008c4a
--- /dev/null
+++ b/apps/docs/content/docs/integrations/github/setup.mdx
@@ -0,0 +1,197 @@
+---
+title: App Setup
+description: Learn how to create and configure a GitHub App for Kaneo integration. Step-by-step guide to register your Kaneo instance with GitHub.
+icon: Settings
+---
+
+import { Step, Steps } from 'fumadocs-ui/components/steps';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+This guide walks you through creating and configuring a GitHub App to enable the Kaneo integration. **Start here before deploying or configuring your Kaneo instance.**
+
+## Overview
+
+A GitHub App provides secure, granular access to your repositories and allows Kaneo to:
+- Create issues automatically when tasks are created
+- Access repository metadata for verification
+- Receive webhook events for issue synchronization
+
+<Callout type="info">
+GitHub Apps are more secure than personal access tokens and provide better permission control.
+</Callout>
+
+<Callout type="error">
+**Important**: Complete this GitHub App setup **before** deploying Kaneo. You'll need the app credentials during deployment configuration.
+</Callout>
+
+## Step 1: Create a GitHub App
+
+<Steps>
+<Step>
+**Navigate to GitHub App Settings**
+
+Go to [GitHub Developer Settings](https://github.com/settings/developers) and click "New GitHub App".
+</Step>
+
+<Step>
+**Configure Basic Information**
+
+Fill in the basic app information:
+
+- **GitHub App name**: `kaneo-[your-instance-name]` (must be unique across GitHub)
+- **Description**: `Kaneo project management integration`
+- **Homepage URL**: Your planned Kaneo instance URL (e.g., `https://kaneo.yourdomain.com`)
+- **Webhook URL**: `https://your-kaneo-instance.com/github-integration/webhook`
+- **Webhook secret**: Generate a secure random string (save this for later)
+
+<Callout type="warning">
+Replace `your-kaneo-instance.com` with your planned Kaneo domain. The webhook URL must be publicly accessible once deployed.
+</Callout>
+</Step>
+
+<Step>
+**Set Repository Permissions**
+
+Configure the following permissions:
+
+| Permission | Access | Purpose |
+|------------|---------|---------|
+| **Issues** | Read & Write | Create and update issues |
+| **Metadata** | Read | Access repository information |
+| **Contents** | Read | Access repository metadata |
+
+<Callout type="error">
+**Critical**: Make sure to grant **Write** access to Issues - this is required for creating issues automatically.
+</Callout>
+</Step>
+
+<Step>
+**Subscribe to Webhook Events**
+
+**This step is required for proper integration.** Subscribe to these events:
+
+- **Issues** - To track when issues are created, updated, or closed
+- **Issue Comments** - To track comments on issues
+
+<Callout type="error">
+**Required**: You must subscribe to **Issues** events for the integration to work properly. This enables bidirectional synchronization between Kaneo tasks and GitHub issues.
+</Callout>
+
+<Callout type="info">
+These webhook events enable real-time synchronization between your Kaneo tasks and GitHub issues.
+</Callout>
+</Step>
+
+<Step>
+**Create the App**
+
+Click "Create GitHub App" to create your app. You'll be redirected to the app settings page.
+</Step>
+</Steps>
+
+## Step 2: Generate Credentials
+
+<Steps>
+<Step>
+**Generate and Download Private Key**
+
+1. Scroll down to the "Private keys" section
+2. Click "Generate a private key"
+3. Download the `.pem` file - you'll need its contents for configuration
+
+<Callout type="warn">
+Keep this private key secure! It's used to authenticate your Kaneo instance with GitHub.
+</Callout>
+</Step>
+
+<Step>
+**Note Your App Information**
+
+From the app settings page, note down these important values:
+
+- **App ID** (shown at the top of the page)
+- **Client ID** (in the "Basic information" section)
+- **Client Secret** (click "Generate a new client secret")
+- **Webhook Secret** (the one you created earlier)
+- **Private Key** (contents of the downloaded `.pem` file)
+
+<Callout type="info">
+You'll need all of these values for the [configuration step](/docs/integrations/github/configuration).
+</Callout>
+</Step>
+</Steps>
+
+## Step 3: Install the App
+
+<Steps>
+<Step>
+**Install on Your Account/Organization**
+
+1. Go to your GitHub App settings page
+2. Click "Install App" in the left sidebar
+3. Choose your account or organization
+4. Select repositories:
+ - **All repositories** (if you want integration available for all repos)
+ - **Selected repositories** (choose specific repos)
+
+<Callout type="tip">
+You can modify repository access later by going to your [GitHub App installations](https://github.com/settings/installations).
+</Callout>
+</Step>
+
+<Step>
+**Verify Installation**
+
+After installation, you should see your app listed in:
+- [Your GitHub App installations](https://github.com/settings/installations)
+- The repository's Settings → Integrations & services (for organization repos)
+</Step>
+</Steps>
+
+## Security Best Practices
+
+### App Configuration
+- **Use descriptive names**: Make it clear the app is for Kaneo integration
+- **Limit permissions**: Only grant the minimum required permissions
+- **Repository scope**: Install only on repositories that need integration
+
+### Credential Management
+- **Secure storage**: Store credentials in environment variables or secret management systems
+- **Regular rotation**: Generate new private keys periodically
+- **Access control**: Limit who has access to the GitHub App settings
+
+## Common Issues
+
+### App Name Already Taken
+If your desired app name is taken, try:
+- Adding your organization name: `kaneo-mycompany`
+- Adding a timestamp: `kaneo-mycompany-2024`
+- Using a different naming convention: `mycompany-kaneo`
+
+### Webhook URL Not Accessible
+Ensure your Kaneo instance is:
+- Publicly accessible on the internet
+- Using HTTPS (GitHub requires this for webhooks)
+- Not behind authentication that would block GitHub's webhook calls
+
+### Permission Issues
+Double-check that you've granted:
+- **Write** access to Issues (not just Read)
+- **Read** access to Metadata and Contents
+- Selected the correct repositories during installation
+
+## Next Steps
+
+Now that your GitHub App is created and configured:
+
+1. **[Deploy Kaneo](/docs/getting-started/deployment)** - Deploy your Kaneo instance with the GitHub App credentials
+2. **[Configure GitHub Integration](/docs/integrations/github/configuration)** - Complete the integration setup in your deployed Kaneo instance
+3. **[Connect Repositories](/docs/integrations/github/configuration#connecting-repositories)** - Link your projects to GitHub repositories
+
+<Callout type="info">
+**Important**: Have your GitHub App credentials ready before deployment. You'll need to set them as environment variables during the deployment process.
+</Callout>
+
+---
+
+**Need help?** Check our [troubleshooting guide](/docs/integrations/github/troubleshooting) or ask for help on [Discord](https://discord.gg/rU4tSyhXXU).
\ No newline at end of file
diff --git a/apps/docs/content/docs/integrations/github/troubleshooting.mdx b/apps/docs/content/docs/integrations/github/troubleshooting.mdx
new file mode 100644
index 000000000..25125a9d9
--- /dev/null
+++ b/apps/docs/content/docs/integrations/github/troubleshooting.mdx
@@ -0,0 +1,296 @@
+---
+title: Troubleshooting
+description: Common issues and solutions for GitHub integration. Debug connection problems, permission errors, and webhook issues.
+icon: TriangleAlert
+---
+
+import { Callout } from 'fumadocs-ui/components/callout';
+
+This guide helps you diagnose and fix common issues with the GitHub integration.
+
+## Common Issues
+
+### "GitHub App not installed" Error
+
+**Problem**: Verification shows the app isn't installed on the repository.
+
+**Symptoms**:
+- Red error message in Kaneo UI
+- "Connect Repository" button remains disabled
+- Repository doesn't appear in the browser modal
+
+**Solutions**:
+1. **Check Installation Scope**
+ - Go to [GitHub App installations](https://github.com/settings/installations)
+ - Verify your app is installed on the correct account/organization
+ - Check if the target repository is included in the installation scope
+
+2. **Reinstall with Broader Access**
+ - Edit your app installation
+ - Change from "Selected repositories" to "All repositories"
+ - Or add the specific repository to the selected list
+
+3. **Verify Repository Ownership**
+ - Ensure you're entering the correct repository owner (username/organization)
+ - Check that the repository name is spelled correctly
+ - Verify the repository exists and you have access to it
+
+<Callout type="tip">
+Use the "Browse Repositories" feature in Kaneo to see which repositories your app can access.
+</Callout>
+
+### "Missing Permissions" Error
+
+**Problem**: App is installed but lacks required permissions.
+
+**Symptoms**:
+- Orange warning in verification
+- App appears in installations but can't create issues
+- Missing permissions listed in the error message
+
+**Solutions**:
+1. **Update App Permissions**
+ - Go to your [GitHub App settings](https://github.com/settings/developers)
+ - Edit your app and check permissions:
+ - **Issues**: Must have **Write** access (not just Read)
+ - **Metadata**: Must have **Read** access
+ - **Contents**: Must have **Read** access
+
+2. **Update Installation**
+ - After changing app permissions, you may need to update the installation
+ - Go to [GitHub App installations](https://github.com/settings/installations)
+ - Click "Configure" next to your app
+ - Review and accept any permission changes
+
+3. **Check Organization Permissions**
+ - For organization repositories, ensure the organization allows the app
+ - Organization owners may need to approve third-party apps
+
+### "Repository not found" Error
+
+**Problem**: Repository exists but isn't accessible to the app.
+
+**Symptoms**:
+- Repository not found in verification
+- 404-style errors in logs
+- Repository doesn't appear in browse modal
+
+**Solutions**:
+1. **Verify Repository Details**
+ - Double-check the repository owner and name
+ - Ensure there are no typos or extra spaces
+ - Check that the repository is public or your app has access to private repos
+
+2. **Check Private Repository Access**
+ - Private repositories require explicit app installation
+ - Ensure your GitHub App is installed on the repository owner's account
+ - Verify the app has permission to access private repositories
+
+3. **Organization Repository Issues**
+ - Check if the organization has third-party app restrictions
+ - Ensure the app is approved by organization owners
+ - Verify the app is installed at the organization level, not just personal account
+
+### Environment Variable Issues
+
+**Problem**: Integration doesn't work after configuration.
+
+**Symptoms**:
+- No GitHub issues created when tasks are made
+- Authentication errors in logs
+- Integration appears configured but doesn't function
+
+**Solutions**:
+1. **Verify All Variables Are Set**
+ ```bash
+ # Check if environment variables are loaded
+ echo $GITHUB_APP_ID
+ echo $GITHUB_CLIENT_ID
+ # etc.
+ ```
+
+2. **Check Private Key Format**
+ - Ensure `GITHUB_PRIVATE_KEY` includes the full content with proper line breaks
+ - The key should start with `-----BEGIN RSA PRIVATE KEY-----`
+ - The key should end with `-----END RSA PRIVATE KEY-----`
+ - Include all newlines and formatting from the `.pem` file
+
+3. **Restart Backend Service**
+ - Environment variable changes require a service restart
+ - For Docker Compose: `docker compose restart backend`
+ - For Kubernetes: `kubectl rollout restart deployment/kaneo-backend`
+
+4. **Check Log Output**
+ - Look for authentication errors on startup
+ - Verify the GitHub App ID is recognized
+ - Check for private key parsing errors
+
+<Callout type="warning">
+Make sure your private key doesn't have any extra characters or missing newlines.
+</Callout>
+
+## Webhook Issues
+
+### Webhook Not Receiving Events
+
+**Problem**: GitHub events aren't reaching Kaneo.
+
+**Symptoms**:
+- Webhook events listed in GitHub but no logs in Kaneo
+- Webhook delivery failures in GitHub App settings
+
+**Solutions**:
+1. **Verify Webhook URL**
+ - Ensure the URL is publicly accessible: `https://your-domain.com/github-integration/webhook`
+ - Test accessibility from external tools like curl or online checkers
+ - Verify your domain has proper DNS resolution
+
+2. **Check HTTPS Configuration**
+ - GitHub requires HTTPS for webhook endpoints
+ - Ensure your SSL certificate is valid and not self-signed
+ - Test your webhook endpoint with online SSL checkers
+
+3. **Firewall and Network Issues**
+ - Ensure GitHub's IP ranges can reach your server
+ - Check if your hosting provider blocks incoming webhooks
+ - Verify no authentication middleware is blocking the webhook endpoint
+
+### Webhook Signature Verification Fails
+
+**Problem**: Webhooks reach Kaneo but signature verification fails.
+
+**Symptoms**:
+- "Invalid signature" errors in logs
+- Webhook events rejected with 400 status
+
+**Solutions**:
+1. **Verify Webhook Secret**
+ - Ensure `GITHUB_WEBHOOK_SECRET` matches exactly what you set in the GitHub App
+ - Check for extra spaces or characters
+ - The secret is case-sensitive
+
+2. **Check Secret Configuration**
+ - In GitHub App settings, verify the webhook secret is set
+ - If you changed the secret, update the environment variable and restart
+ - Generate a new secret if there are persistent issues
+
+## Testing and Debugging
+
+### Testing the Integration
+
+Follow these steps to systematically test your integration:
+
+1. **Verify Environment Variables**
+ ```bash
+ # Check that all required variables are set (don't print private key!)
+ echo "App ID: $GITHUB_APP_ID"
+ echo "Client ID: $GITHUB_CLIENT_ID"
+ echo "Webhook Secret: [REDACTED]"
+ echo "App Name: $GITHUB_APP_NAME"
+ ```
+
+2. **Test Repository Access**
+ - Use the "Browse Repositories" feature in Kaneo
+ - Verify your target repository appears in the list
+ - Try connecting a test repository first
+
+3. **Create a Test Task**
+ - Create a simple task in your connected project
+ - Check GitHub immediately for the new issue
+ - Verify the issue format and labels are correct
+
+4. **Check Backend Logs**
+ Look for these log messages:
+ ```
+ ✅ GitHub issue created: { issueNumber: 42, issueUrl: "...", taskId: "...", repository: "..." }
+ ❌ Failed to create GitHub issue: [error details]
+ ✅ Task created: { taskId: "...", title: "...", projectId: "..." }
+ ```
+
+### Log Analysis
+
+**Successful Integration Logs**:
+```
+Task created: { taskId: "task_123", title: "Fix bug", projectId: "proj_456" }
+Creating GitHub issue for repository: owner/repo
+GitHub issue created: { issueNumber: 42, issueUrl: "https://github.com/owner/repo/issues/42" }
+```
+
+**Common Error Patterns**:
+```
+❌ No active GitHub integration found for project: proj_456
+❌ Failed to create GitHub issue: HttpError: Bad credentials
+❌ Repository not found: owner/nonexistent-repo
+❌ App installation not found for repository: owner/repo
+```
+
+### GitHub App Diagnostics
+
+Use GitHub's built-in tools to diagnose issues:
+
+1. **App Installation Page**
+ - Visit [GitHub App installations](https://github.com/settings/installations)
+ - Check which repositories your app can access
+ - Review granted permissions
+
+2. **Webhook Delivery Logs**
+ - In your GitHub App settings, check the "Advanced" tab
+ - Review recent webhook deliveries and their status codes
+ - Look for failed deliveries or error responses
+
+3. **Repository Integration Status**
+ - Go to your repository's Settings → Integrations & services
+ - Verify your app appears in the list
+ - Check the app's permissions and access
+
+## Getting Help
+
+If you're still experiencing issues:
+
+### Before Asking for Help
+
+1. **Check Your Setup**
+ - Verify all environment variables are correct
+ - Ensure your GitHub App has the right permissions
+ - Test with a simple repository first
+
+2. **Gather Information**
+ - Note the exact error messages
+ - Check both Kaneo logs and GitHub webhook delivery logs
+ - Document your environment (Docker, Kubernetes, etc.)
+
+3. **Test Basic Functionality**
+ - Try creating a task without GitHub integration
+ - Verify your Kaneo instance is working normally
+ - Test with different repositories if possible
+
+### Support Channels
+
+- **[Discord Community](https://discord.gg/rU4tSyhXXU)** - Real-time help from the community
+- **[GitHub Issues](https://github.com/usekaneo/kaneo/issues)** - Report bugs or request features
+- **[Documentation](/docs)** - Review setup guides and troubleshooting
+
+### What to Include in Support Requests
+
+1. **Environment Details**
+ - Kaneo version
+ - Deployment method (Docker, Kubernetes, etc.)
+ - Operating system
+
+2. **Error Information**
+ - Exact error messages
+ - Screenshots of the issue
+ - Relevant log entries
+
+3. **Configuration Details**
+ - Which environment variables you've set (don't share secret values!)
+ - GitHub App permissions you've granted
+ - Repository details (without sharing sensitive info)
+
+<Callout type="info">
+When sharing logs or error messages, always redact sensitive information like private keys, secrets, or access tokens.
+</Callout>
+
+---
+
+**Still stuck?** The Kaneo community is here to help! Join our [Discord](https://discord.gg/rU4tSyhXXU) for real-time support.
\ No newline at end of file
diff --git a/apps/docs/content/docs/integrations/meta.json b/apps/docs/content/docs/integrations/meta.json
new file mode 100644
index 000000000..70716ca7d
--- /dev/null
+++ b/apps/docs/content/docs/integrations/meta.json
@@ -0,0 +1,6 @@
+{
+ "title": "Integrations",
+ "icon": "Plug",
+ "pages": ["github"],
+ "defaultOpen": true
+}
diff --git a/apps/web/package.json b/apps/web/package.json
index 522d3e760..6128f088b 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -57,6 +57,7 @@
"sonner": "^2.0.3",
"tailwind-merge": "^3.3.0",
"tailwindcss-animate": "^1.0.7",
+ "tiptap-markdown": "^0.8.10",
"zod": "^3.25.67",
"zustand": "^5.0.4"
},
diff --git a/apps/web/src/components/common/editor.tsx b/apps/web/src/components/common/editor.tsx
index 6913455b1..9f1001fbe 100644
--- a/apps/web/src/components/common/editor.tsx
+++ b/apps/web/src/components/common/editor.tsx
@@ -1,5 +1,6 @@
import { cn } from "@/lib/cn";
import Highlight from "@tiptap/extension-highlight";
+import Link from "@tiptap/extension-link";
import Placeholder from "@tiptap/extension-placeholder";
import TaskItem from "@tiptap/extension-task-item";
import TaskList from "@tiptap/extension-task-list";
@@ -16,6 +17,7 @@ import {
Code,
HighlighterIcon,
Italic,
+ Link2,
List,
ListOrdered,
Quote,
@@ -23,6 +25,7 @@ import {
Type,
} from "lucide-react";
import { useEffect, useRef, useState } from "react";
+import { Markdown } from "tiptap-markdown";
interface EditorProps {
value: string;
@@ -95,6 +98,15 @@ export function Editor({
},
},
}),
+ Link.configure({
+ openOnClick: true,
+ autolink: true,
+ defaultProtocol: "https",
+ HTMLAttributes: {
+ class:
+ "text-indigo-600 dark:text-indigo-400 underline cursor-pointer hover:text-indigo-800 dark:hover:text-indigo-300",
+ },
+ }),
Highlight.configure({
HTMLAttributes: {
class:
@@ -112,7 +124,14 @@ export function Editor({
class: "flex gap-2 items-start",
},
}),
-
+ Markdown.configure({
+ html: true,
+ tightLists: true,
+ linkify: true,
+ breaks: true,
+ transformPastedText: true,
+ transformCopiedText: true,
+ }),
Placeholder.configure({
placeholder,
}),
@@ -122,7 +141,8 @@ export function Editor({
},
content: value,
onUpdate: ({ editor }: { editor: TiptapEditor }) => {
- onChange(editor.getHTML());
+ const markdown = editor.storage.markdown.getMarkdown();
+ onChange(markdown);
},
});
@@ -137,6 +157,12 @@ export function Editor({
return () => document.removeEventListener("mousedown", handleClickOutside);
}, []);
+ useEffect(() => {
+ if (editor && value !== editor.storage.markdown.getMarkdown()) {
+ editor.commands.setContent(value);
+ }
+ }, [value, editor]);
+
const getCurrentTextStyle = () => {
if (!editor) return TEXT_OPTIONS[0];
if (editor.isActive("heading", { level: 1 })) return TEXT_OPTIONS[1];
@@ -296,6 +322,22 @@ export function Editor({
>
<Code className="w-4 h-4 text-zinc-600 dark:text-zinc-400" />
</button>
+ <div className="w-px h-6 mx-1 bg-zinc-200 dark:bg-zinc-800" />
+ <button
+ type="button"
+ onClick={() => {
+ const url = window.prompt("Enter URL:");
+ if (url) {
+ editor.chain().focus().setLink({ href: url }).run();
+ }
+ }}
+ className={cn(
+ "p-1.5 rounded-lg hover:bg-zinc-100 dark:hover:bg-zinc-800",
+ editor.isActive("link") && "bg-zinc-100 dark:bg-zinc-800",
+ )}
+ >
+ <Link2 className="w-4 h-4 text-zinc-600 dark:text-zinc-400" />
+ </button>
</div>
<EditorContent
editor={editor}
diff --git a/apps/web/src/components/project/github-integration-settings.tsx b/apps/web/src/components/project/github-integration-settings.tsx
new file mode 100644
index 000000000..88ede9959
--- /dev/null
+++ b/apps/web/src/components/project/github-integration-settings.tsx
@@ -0,0 +1,547 @@
+import { RepositoryBrowserModal } from "@/components/project/repository-browser-modal";
+import { Button } from "@/components/ui/button";
+import {
+ Form,
+ FormControl,
+ FormDescription,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from "@/components/ui/form";
+import { Input } from "@/components/ui/input";
+import type { VerifyGithubInstallationResponse } from "@/fetchers/github-integration/verify-github-installation";
+import {
+ useCreateGithubIntegration,
+ useDeleteGithubIntegration,
+ useVerifyGithubInstallation,
+} from "@/hooks/mutations/github-integration/use-create-github-integration";
+import useGetGithubIntegration from "@/hooks/queries/github-integration/use-get-github-integration";
+import { cn } from "@/lib/cn";
+import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
+import {
+ AlertTriangle,
+ CheckCircle,
+ ExternalLink,
+ GitBranch,
+ Github,
+ Link,
+ RefreshCw,
+ Unlink,
+ XCircle,
+} from "lucide-react";
+import React from "react";
+import { useForm } from "react-hook-form";
+import { toast } from "sonner";
+import { z } from "zod/v4";
+
+const githubIntegrationSchema = z.object({
+ repositoryOwner: z
+ .string()
+ .min(1, "Repository owner is required")
+ .regex(/^[a-zA-Z0-9-]+$/, "Invalid repository owner format"),
+ repositoryName: z
+ .string()
+ .min(1, "Repository name is required")
+ .regex(/^[a-zA-Z0-9._-]+$/, "Invalid repository name format"),
+});
+
+type GithubIntegrationFormValues = z.infer<typeof githubIntegrationSchema>;
+
+export function GitHubIntegrationSettings({
+ projectId,
+}: { projectId: string }) {
+ const { data: integration, isLoading } = useGetGithubIntegration(projectId);
+ const { mutateAsync: createIntegration, isPending: isCreating } =
+ useCreateGithubIntegration();
+ const { mutateAsync: deleteIntegration, isPending: isDeleting } =
+ useDeleteGithubIntegration();
+ const { mutateAsync: verifyInstallation, isPending: isVerifying } =
+ useVerifyGithubInstallation();
+
+ const [verificationResult, setVerificationResult] =
+ React.useState<VerifyGithubInstallationResponse | null>(null);
+ const [showRepositoryBrowser, setShowRepositoryBrowser] =
+ React.useState(false);
+
+ const form = useForm<GithubIntegrationFormValues>({
+ resolver: standardSchemaResolver(githubIntegrationSchema),
+ defaultValues: {
+ repositoryOwner: integration?.repositoryOwner || "",
+ repositoryName: integration?.repositoryName || "",
+ },
+ });
+
+ React.useEffect(() => {
+ if (integration) {
+ form.reset({
+ repositoryOwner: integration.repositoryOwner,
+ repositoryName: integration.repositoryName,
+ });
+ }
+ }, [integration, form]);
+
+ const repositoryOwner = form.watch("repositoryOwner");
+ const repositoryName = form.watch("repositoryName");
+
+ const handleVerifyInstallation = React.useCallback(
+ async (data: GithubIntegrationFormValues, showToast = true) => {
+ try {
+ const result = await verifyInstallation(data);
+ setVerificationResult(result);
+
+ if (showToast) {
+ if (result.isInstalled && result.hasRequiredPermissions) {
+ toast.success("GitHub App is properly installed!");
+ } else if (result.isInstalled) {
+ toast.warning(
+ "GitHub App is installed but missing required permissions",
+ );
+ } else if (result.repositoryExists) {
+ toast.warning(
+ "GitHub App needs to be installed on this repository",
+ );
+ } else {
+ toast.error("Repository not found or not accessible");
+ }
+ }
+ } catch (error) {
+ if (showToast) {
+ toast.error(
+ error instanceof Error
+ ? error.message
+ : "Failed to verify GitHub installation",
+ );
+ }
+ setVerificationResult(null);
+ }
+ },
+ [verifyInstallation],
+ );
+
+ React.useEffect(() => {
+ if (repositoryOwner && repositoryName && form.formState.isValid) {
+ handleVerifyInstallation({ repositoryOwner, repositoryName }, false);
+ }
+ }, [
+ repositoryOwner,
+ repositoryName,
+ form.formState.isValid,
+ handleVerifyInstallation,
+ ]);
+
+ const handleRepositorySelect = (repository: {
+ owner: string;
+ name: string;
+ }) => {
+ form.setValue("repositoryOwner", repository.owner, {
+ shouldValidate: true,
+ shouldDirty: true,
+ shouldTouch: true,
+ });
+ form.setValue("repositoryName", repository.name, {
+ shouldValidate: true,
+ shouldDirty: true,
+ shouldTouch: true,
+ });
+ setShowRepositoryBrowser(false);
+
+ setVerificationResult(null);
+ };
+
+ const onSubmit = async (data: GithubIntegrationFormValues) => {
+ try {
+ const verification = await verifyInstallation(data);
+
+ if (!verification.isInstalled) {
+ toast.error("Please install the GitHub App on this repository first");
+ return;
+ }
+
+ if (!verification.hasRequiredPermissions) {
+ toast.error(
+ `GitHub App is missing required permissions: ${verification.missingPermissions?.join(", ") || "issues"}. Please update the app permissions.`,
+ );
+ return;
+ }
+
+ await createIntegration({
+ projectId,
+ data,
+ });
+ toast.success("GitHub integration updated successfully");
+ } catch (error) {
+ toast.error(
+ error instanceof Error
+ ? error.message
+ : "Failed to update GitHub integration",
+ );
+ }
+ };
+
+ const handleDelete = async () => {
+ try {
+ await deleteIntegration(projectId);
+ form.reset({ repositoryOwner: "", repositoryName: "" });
+ setVerificationResult(null);
+ toast.success("GitHub integration removed successfully");
+ } catch (error) {
+ toast.error(
+ error instanceof Error
+ ? error.message
+ : "Failed to remove GitHub integration",
+ );
+ }
+ };
+
+ if (isLoading) {
+ return (
+ <div className="space-y-4">
+ <div className="h-4 bg-gray-200 rounded animate-pulse" />
+ <div className="h-10 bg-gray-200 rounded animate-pulse" />
+ <div className="h-10 bg-gray-200 rounded animate-pulse" />
+ </div>
+ );
+ }
+
+ const isConnected = !!integration && integration.isActive;
+
+ return (
+ <div className="space-y-6">
+ <div className="flex items-start gap-4">
+ <div className="p-2 bg-gray-100 dark:bg-gray-800 rounded-lg">
+ <Github className="w-6 h-6" />
+ </div>
+ <div className="flex-1">
+ <h3 className="text-lg font-semibold">GitHub Integration</h3>
+ <p className="text-sm text-gray-600 dark:text-gray-400">
+ Connect this project to a GitHub repository to automatically create
+ issues when tasks are created in Kaneo.
+ </p>
+ </div>
+ </div>
+
+ {isConnected && (
+ <div className="flex items-center gap-2 p-3 bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg">
+ <CheckCircle className="w-4 h-4 text-green-600 dark:text-green-400" />
+ <span className="text-sm text-green-700 dark:text-green-300">
+ Connected to{" "}
+ <code className="px-1 py-0.5 bg-green-100 dark:bg-green-800 rounded text-xs">
+ {integration.repositoryOwner}/{integration.repositoryName}
+ </code>
+ </span>
+ </div>
+ )}
+
+ {verificationResult && (
+ <div
+ className={cn(
+ "flex items-start gap-2 p-3 border rounded-lg",
+ verificationResult.isInstalled &&
+ verificationResult.hasRequiredPermissions
+ ? "bg-green-50 dark:bg-green-900/20 border-green-200 dark:border-green-800"
+ : verificationResult.isInstalled
+ ? "bg-amber-50 dark:bg-amber-900/20 border-amber-200 dark:border-amber-800"
+ : verificationResult.repositoryExists
+ ? "bg-amber-50 dark:bg-amber-900/20 border-amber-200 dark:border-amber-800"
+ : "bg-red-50 dark:bg-red-900/20 border-red-200 dark:border-red-800",
+ )}
+ >
+ {verificationResult.isInstalled &&
+ verificationResult.hasRequiredPermissions ? (
+ <CheckCircle className="w-4 h-4 text-green-600 dark:text-green-400 mt-0.5 flex-shrink-0" />
+ ) : verificationResult.isInstalled ||
+ verificationResult.repositoryExists ? (
+ <AlertTriangle className="w-4 h-4 text-amber-600 dark:text-amber-400 mt-0.5 flex-shrink-0" />
+ ) : (
+ <XCircle className="w-4 h-4 text-red-600 dark:text-red-400 mt-0.5 flex-shrink-0" />
+ )}
+ <div
+ className={cn(
+ "text-sm flex-1",
+ verificationResult.isInstalled &&
+ verificationResult.hasRequiredPermissions
+ ? "text-green-700 dark:text-green-300"
+ : verificationResult.isInstalled ||
+ verificationResult.repositoryExists
+ ? "text-amber-700 dark:text-amber-300"
+ : "text-red-700 dark:text-red-300",
+ )}
+ >
+ <p className="font-medium">{verificationResult.message}</p>
+
+ {verificationResult.isInstalled &&
+ !verificationResult.hasRequiredPermissions &&
+ verificationResult.missingPermissions && (
+ <div className="mt-2">
+ <p className="text-xs mb-2">
+ Missing permissions:{" "}
+ <strong>
+ {verificationResult.missingPermissions.join(", ")}
+ </strong>
+ </p>
+ <div className="flex gap-2">
+ {verificationResult.settingsUrl && (
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() =>
+ window.open(verificationResult.settingsUrl, "_blank")
+ }
+ className="gap-2"
+ >
+ <ExternalLink className="w-3 h-3" />
+ Update Permissions
+ </Button>
+ )}
+ {verificationResult.installationUrl && (
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() =>
+ window.open(
+ verificationResult.installationUrl,
+ "_blank",
+ )
+ }
+ className="gap-2"
+ >
+ <ExternalLink className="w-3 h-3" />
+ Reinstall App
+ </Button>
+ )}
+ </div>
+ </div>
+ )}
+
+ {!verificationResult.isInstalled &&
+ verificationResult.repositoryExists && (
+ <div className="mt-2 flex gap-2">
+ {verificationResult.installationUrl && (
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() =>
+ window.open(
+ verificationResult.installationUrl,
+ "_blank",
+ )
+ }
+ className="gap-2"
+ >
+ <ExternalLink className="w-3 h-3" />
+ Install GitHub App
+ </Button>
+ )}
+ {verificationResult.settingsUrl && (
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() =>
+ window.open(verificationResult.settingsUrl, "_blank")
+ }
+ className="gap-2"
+ >
+ <ExternalLink className="w-3 h-3" />
+ View App Details
+ </Button>
+ )}
+ </div>
+ )}
+ </div>
+ </div>
+ )}
+
+ <Form {...form}>
+ <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
+ <div className="grid grid-cols-2 gap-4">
+ <FormField
+ control={form.control}
+ name="repositoryOwner"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Repository Owner</FormLabel>
+ <FormControl>
+ <Input
+ placeholder="e.g., octocat"
+ {...field}
+ disabled={isCreating || isDeleting}
+ />
+ </FormControl>
+ <FormDescription>
+ The GitHub username or organization name
+ </FormDescription>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+
+ <FormField
+ control={form.control}
+ name="repositoryName"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Repository Name</FormLabel>
+ <FormControl>
+ <Input
+ placeholder="e.g., my-project"
+ {...field}
+ disabled={isCreating || isDeleting}
+ />
+ </FormControl>
+ <FormDescription>The repository name</FormDescription>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ </div>
+
+ <div className="flex items-center gap-2">
+ <Button
+ type="button"
+ variant="outline"
+ onClick={() => setShowRepositoryBrowser(true)}
+ className="flex items-center gap-2"
+ >
+ <GitBranch className="w-4 h-4" />
+ Browse Repositories
+ </Button>
+
+ <Button
+ type="button"
+ variant="outline"
+ onClick={() => handleVerifyInstallation(form.getValues())}
+ disabled={isVerifying || !form.formState.isValid}
+ className="flex items-center gap-2"
+ >
+ <RefreshCw
+ className={cn("w-4 h-4", isVerifying && "animate-spin")}
+ />
+ Verify Installation
+ </Button>
+
+ <Button
+ type="submit"
+ disabled={
+ isCreating ||
+ isDeleting ||
+ !form.formState.isValid ||
+ (verificationResult
+ ? !verificationResult.isInstalled ||
+ !verificationResult.hasRequiredPermissions
+ : false)
+ }
+ className="flex items-center gap-2"
+ >
+ <Link className="w-4 h-4" />
+ {isConnected ? "Update Integration" : "Connect Repository"}
+ </Button>
+
+ {isConnected && (
+ <Button
+ type="button"
+ variant="destructive"
+ onClick={handleDelete}
+ disabled={isCreating || isDeleting}
+ className="flex items-center gap-2"
+ >
+ <Unlink className="w-4 h-4" />
+ Disconnect
+ </Button>
+ )}
+ </div>
+ </form>
+ </Form>
+
+ <RepositoryBrowserModal
+ open={showRepositoryBrowser}
+ onOpenChange={setShowRepositoryBrowser}
+ onSelectRepository={handleRepositorySelect}
+ selectedRepository={
+ repositoryOwner && repositoryName
+ ? `${repositoryOwner}/${repositoryName}`
+ : undefined
+ }
+ />
+
+ {!verificationResult?.isInstalled &&
+ repositoryOwner &&
+ repositoryName && (
+ <div className="p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg">
+ <div className="flex items-start gap-3">
+ <Github className="w-5 h-5 text-blue-600 dark:text-blue-400 mt-0.5" />
+ <div className="text-sm text-blue-700 dark:text-blue-300">
+ <p className="font-medium mb-2">
+ Need to install the GitHub App?
+ </p>
+ <p className="mb-3">
+ To use this integration, you need to install the Kaneo GitHub
+ App on your repository. This gives Kaneo permission to create
+ issues when tasks are created.
+ </p>
+ <div className="space-y-2">
+ <p className="text-xs">Steps to install:</p>
+ <ol className="list-decimal list-inside space-y-1 text-xs">
+ <li>Click "Install GitHub App" if available above</li>
+ <li>Or go to your GitHub App settings</li>
+ <li>
+ Select the repository:{" "}
+ <code className="px-1 py-0.5 bg-blue-100 dark:bg-blue-800 rounded">
+ {repositoryOwner}/{repositoryName}
+ </code>
+ </li>
+ <li>Grant necessary permissions (Issues: Write)</li>
+ <li>Come back and click "Verify Installation"</li>
+ </ol>
+ </div>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {verificationResult?.isInstalled &&
+ !verificationResult.hasRequiredPermissions && (
+ <div className="p-4 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 rounded-lg">
+ <div className="flex items-start gap-3">
+ <AlertTriangle className="w-5 h-5 text-amber-600 dark:text-amber-400 mt-0.5" />
+ <div className="text-sm text-amber-700 dark:text-amber-300">
+ <p className="font-medium mb-2">
+ App installed but permissions need updating
+ </p>
+ <p className="mb-3">
+ The GitHub App is installed on your repository but doesn't
+ have the required permissions to create issues. You need to
+ update the app permissions.
+ </p>
+ <div className="space-y-2">
+ <p className="text-xs">Required permissions:</p>
+ <ul className="list-disc list-inside space-y-1 text-xs">
+ <li>
+ Issues: <strong>Write</strong> (to create and update
+ issues)
+ </li>
+ <li>
+ Metadata: <strong>Read</strong> (to access repository
+ information)
+ </li>
+ </ul>
+ <p className="text-xs mt-2">
+ Click "Update Permissions" above or visit your
+ <a
+ href="https://github.com/settings/installations"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="underline hover:no-underline ml-1"
+ >
+ GitHub App settings
+ </a>
+ to modify permissions.
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/repository-browser-modal.tsx b/apps/web/src/components/project/repository-browser-modal.tsx
new file mode 100644
index 000000000..c882f0260
--- /dev/null
+++ b/apps/web/src/components/project/repository-browser-modal.tsx
@@ -0,0 +1,327 @@
+import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
+import { Badge } from "@/components/ui/badge";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import getGitHubAppInfo from "@/fetchers/github-integration/get-app-info";
+import listRepositories, {
+ type ListRepositoriesResponse,
+} from "@/fetchers/github-integration/list-repositories";
+import { cn } from "@/lib/cn";
+import * as Dialog from "@radix-ui/react-dialog";
+import { useQuery } from "@tanstack/react-query";
+import {
+ Check,
+ Clock,
+ ExternalLink,
+ GitBranch,
+ Globe,
+ Lock,
+ Search,
+ Settings,
+ X,
+} from "lucide-react";
+import React from "react";
+
+type RepositoryBrowserModalProps = {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+ onSelectRepository: (repository: { owner: string; name: string }) => void;
+ selectedRepository?: string;
+};
+
+export function RepositoryBrowserModal({
+ open,
+ onOpenChange,
+ onSelectRepository,
+ selectedRepository,
+}: RepositoryBrowserModalProps) {
+ const [searchTerm, setSearchTerm] = React.useState("");
+
+ const { data, isLoading, error, refetch } = useQuery({
+ queryKey: ["github-repositories"],
+ queryFn: listRepositories,
+ enabled: open,
+ });
+
+ const { data: appInfo } = useQuery({
+ queryKey: ["github-app-info"],
+ queryFn: getGitHubAppInfo,
+ enabled: open,
+ });
+
+ const filteredRepositories = React.useMemo(() => {
+ if (!data?.repositories) return [];
+
+ if (!searchTerm) return data.repositories;
+
+ const search = searchTerm.toLowerCase();
+ return data.repositories.filter(
+ (repo) =>
+ repo.full_name.toLowerCase().includes(search) ||
+ repo.description?.toLowerCase().includes(search),
+ );
+ }, [data?.repositories, searchTerm]);
+
+ const handleSelectRepository = (
+ repository: ListRepositoriesResponse["repositories"][number],
+ ) => {
+ onSelectRepository({
+ owner: repository.owner.login,
+ name: repository.name,
+ });
+ onOpenChange(false);
+ };
+
+ const formatTimeAgo = (dateString: string) => {
+ const date = new Date(dateString);
+ const now = new Date();
+ const diffInSeconds = Math.floor((now.getTime() - date.getTime()) / 1000);
+
+ if (diffInSeconds < 60) return "just now";
+ if (diffInSeconds < 3600) return `${Math.floor(diffInSeconds / 60)}m ago`;
+ if (diffInSeconds < 86400)
+ return `${Math.floor(diffInSeconds / 3600)}h ago`;
+ if (diffInSeconds < 2592000)
+ return `${Math.floor(diffInSeconds / 86400)}d ago`;
+
+ return date.toLocaleDateString();
+ };
+
+ const resetAndCloseModal = (open: boolean) => {
+ if (!open) {
+ setSearchTerm("");
+ }
+ onOpenChange(open);
+ };
+
+ return (
+ <Dialog.Root open={open} onOpenChange={resetAndCloseModal}>
+ <Dialog.Portal>
+ <Dialog.Overlay className="fixed inset-0 bg-black/40 backdrop-blur-sm z-40" />
+ <Dialog.Content className="fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-3xl max-h-[85vh]">
+ <div className="bg-white dark:bg-zinc-900 rounded-lg shadow-xl border border-zinc-200 dark:border-zinc-800 flex flex-col h-full max-h-[85vh]">
+ <div className="flex-shrink-0 flex items-center justify-between p-4 border-b border-zinc-200 dark:border-zinc-800">
+ <div>
+ <Dialog.Title className="text-lg font-semibold text-zinc-900 dark:text-zinc-100 flex items-center gap-2">
+ <GitBranch className="w-5 h-5" />
+ Select Repository
+ </Dialog.Title>
+ <p className="text-sm text-zinc-500 dark:text-zinc-400 mt-1">
+ Choose a repository where your GitHub App is installed to
+ enable issue creation.
+ </p>
+ </div>
+ <Dialog.Close className="text-zinc-500 hover:text-zinc-700 dark:text-zinc-400 dark:hover:text-zinc-300">
+ <X size={20} />
+ </Dialog.Close>
+ </div>
+
+ <div className="flex-shrink-0 p-4 border-b border-zinc-200 dark:border-zinc-800">
+ <div className="relative">
+ <Search className="absolute left-3 top-1/2 transform -translate-y-1/2 text-zinc-400 w-4 h-4" />
+ <Input
+ placeholder="Search repositories..."
+ value={searchTerm}
+ onChange={(e) => setSearchTerm(e.target.value)}
+ className="pl-10 bg-white dark:bg-zinc-800/50"
+ />
+ </div>
+ </div>
+
+ <div className="flex-1 overflow-y-auto">
+ {isLoading && (
+ <div className="p-4 space-y-3">
+ {Array.from({ length: 5 }, (_, i) => (
+ <div
+ key={`loading-skeleton-repo-${i}-${Date.now()}`}
+ className="p-3 border border-zinc-200 dark:border-zinc-700 rounded-lg animate-pulse"
+ >
+ <div className="flex items-center gap-3">
+ <div className="w-8 h-8 bg-zinc-200 dark:bg-zinc-700 rounded-full" />
+ <div className="flex-1">
+ <div className="w-48 h-4 bg-zinc-200 dark:bg-zinc-700 rounded mb-2" />
+ <div className="w-32 h-3 bg-zinc-200 dark:bg-zinc-700 rounded" />
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ )}
+
+ {error && (
+ <div className="text-center py-12">
+ <div className="text-red-600 dark:text-red-400 mb-3 font-medium">
+ Failed to load repositories
+ </div>
+ <Button variant="outline" onClick={() => refetch()}>
+ Try Again
+ </Button>
+ </div>
+ )}
+
+ {data && !isLoading && (
+ <>
+ {data.repositories.length === 0 && (
+ <div className="text-center py-12">
+ <GitBranch className="w-12 h-12 text-zinc-400 mx-auto mb-4" />
+ <h3 className="text-lg font-medium text-zinc-900 dark:text-zinc-100 mb-2">
+ No repositories found
+ </h3>
+ <p className="text-zinc-500 dark:text-zinc-400 mb-6 max-w-md mx-auto">
+ Install the GitHub App on your repositories to see them
+ here.
+ </p>
+ {appInfo?.appName && (
+ <Button
+ onClick={() =>
+ window.open(
+ `https://github.com/apps/${appInfo.appName}`,
+ "_blank",
+ )
+ }
+ className="bg-indigo-600 text-white hover:bg-indigo-500 dark:bg-indigo-500 dark:hover:bg-indigo-400"
+ >
+ <ExternalLink className="w-4 h-4 mr-2" />
+ Install GitHub App
+ </Button>
+ )}
+ </div>
+ )}
+
+ {/* Repository list */}
+ {filteredRepositories.length > 0 && (
+ <div className="p-4 space-y-2">
+ {filteredRepositories.map((repository) => (
+ <button
+ key={repository.id}
+ type="button"
+ onClick={() => handleSelectRepository(repository)}
+ className={cn(
+ "w-full p-3 border rounded-lg text-left transition-all duration-200 group",
+ "hover:bg-zinc-50 dark:hover:bg-zinc-800/50",
+ "focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-zinc-900",
+ selectedRepository === repository.full_name
+ ? "border-indigo-500 bg-indigo-50 dark:bg-indigo-500/10 dark:border-indigo-400"
+ : "border-zinc-200 dark:border-zinc-700",
+ )}
+ >
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-3 flex-1 min-w-0">
+ <Avatar className="w-8 h-8 flex-shrink-0">
+ <AvatarImage
+ src={repository.owner.avatar_url}
+ />
+ <AvatarFallback className="bg-zinc-100 dark:bg-zinc-800 text-zinc-600 dark:text-zinc-400">
+ {repository.owner.login
+ .charAt(0)
+ .toUpperCase()}
+ </AvatarFallback>
+ </Avatar>
+
+ <div className="flex-1 min-w-0">
+ <div className="flex items-center gap-2 mb-1">
+ <span className="font-medium text-zinc-900 dark:text-zinc-100 truncate">
+ {repository.full_name}
+ </span>
+ <div className="flex items-center gap-1 flex-shrink-0">
+ {repository.private ? (
+ <Lock className="w-3 h-3 text-zinc-400" />
+ ) : (
+ <Globe className="w-3 h-3 text-zinc-400" />
+ )}
+ <Badge
+ variant="secondary"
+ className="text-xs bg-zinc-100 dark:bg-zinc-800"
+ >
+ {repository.owner.type}
+ </Badge>
+ </div>
+ </div>
+
+ {repository.description && (
+ <p className="text-sm text-zinc-600 dark:text-zinc-400 truncate mb-1">
+ {repository.description}
+ </p>
+ )}
+
+ <div className="flex items-center gap-4 text-xs text-zinc-500 dark:text-zinc-500">
+ <div className="flex items-center gap-1">
+ <Clock className="w-3 h-3" />
+ Updated{" "}
+ {formatTimeAgo(repository.updated_at)}
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div className="flex items-center gap-2 flex-shrink-0 ml-3">
+ {selectedRepository === repository.full_name && (
+ <Check className="w-4 h-4 text-indigo-600 dark:text-indigo-400" />
+ )}
+ <Button
+ variant="ghost"
+ size="sm"
+ onClick={(e) => {
+ e.stopPropagation();
+ window.open(repository.html_url, "_blank");
+ }}
+ className="opacity-0 group-hover:opacity-100 transition-opacity"
+ >
+ <ExternalLink className="w-4 h-4" />
+ </Button>
+ </div>
+ </div>
+ </button>
+ ))}
+ </div>
+ )}
+
+ {/* No filtered results */}
+ {filteredRepositories.length === 0 &&
+ data.repositories.length > 0 && (
+ <div className="text-center py-12">
+ <Search className="w-12 h-12 text-zinc-400 mx-auto mb-4" />
+ <h3 className="text-lg font-medium text-zinc-900 dark:text-zinc-100 mb-2">
+ No repositories match your search
+ </h3>
+ <p className="text-zinc-500 dark:text-zinc-400">
+ Try adjusting your search terms or clear the search to
+ see all repositories.
+ </p>
+ </div>
+ )}
+ </>
+ )}
+ </div>
+
+ {/* Footer */}
+ {data && data.installations.length > 0 && (
+ <div className="flex-shrink-0 border-t border-zinc-200 dark:border-zinc-800 p-4">
+ <div className="flex items-center justify-between text-sm text-zinc-600 dark:text-zinc-400">
+ <span>
+ {data.repositories.length} repositories across{" "}
+ {data.installations.length} installations
+ </span>
+ <Button
+ variant="ghost"
+ size="sm"
+ onClick={() =>
+ window.open(
+ "https://github.com/settings/installations",
+ "_blank",
+ )
+ }
+ className="text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100"
+ >
+ <Settings className="w-4 h-4 mr-2" />
+ Manage Installations
+ </Button>
+ </div>
+ </div>
+ )}
+ </div>
+ </Dialog.Content>
+ </Dialog.Portal>
+ </Dialog.Root>
+ );
+}
diff --git a/apps/web/src/fetchers/github-integration/create-github-integration.ts b/apps/web/src/fetchers/github-integration/create-github-integration.ts
new file mode 100644
index 000000000..67ff6ae90
--- /dev/null
+++ b/apps/web/src/fetchers/github-integration/create-github-integration.ts
@@ -0,0 +1,28 @@
+import { client } from "@kaneo/libs";
+import type { InferRequestType } from "hono";
+
+export type CreateGithubIntegrationRequest = InferRequestType<
+ (typeof client)["github-integration"]["project"][":projectId"]["$post"]
+>["json"];
+
+async function createGithubIntegration(
+ projectId: string,
+ data: CreateGithubIntegrationRequest,
+) {
+ const response = await client["github-integration"].project[
+ ":projectId"
+ ].$post({
+ param: { projectId },
+ json: data,
+ });
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ const result = await response.json();
+ return result;
+}
+
+export default createGithubIntegration;
diff --git a/apps/web/src/fetchers/github-integration/delete-github-integration.ts b/apps/web/src/fetchers/github-integration/delete-github-integration.ts
new file mode 100644
index 000000000..68c5bee1d
--- /dev/null
+++ b/apps/web/src/fetchers/github-integration/delete-github-integration.ts
@@ -0,0 +1,19 @@
+import { client } from "@kaneo/libs";
+
+async function deleteGithubIntegration(projectId: string) {
+ const response = await client["github-integration"].project[
+ ":projectId"
+ ].$delete({
+ param: { projectId },
+ });
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ const result = await response.json();
+ return result;
+}
+
+export default deleteGithubIntegration;
diff --git a/apps/web/src/fetchers/github-integration/get-app-info.ts b/apps/web/src/fetchers/github-integration/get-app-info.ts
new file mode 100644
index 000000000..4681a6233
--- /dev/null
+++ b/apps/web/src/fetchers/github-integration/get-app-info.ts
@@ -0,0 +1,18 @@
+import { client } from "@kaneo/libs";
+import type { InferResponseType } from "hono";
+
+export type GitHubAppInfo = InferResponseType<
+ (typeof client)["github-integration"]["app-info"]["$get"]
+>;
+
+export default async function getGitHubAppInfo(): Promise<GitHubAppInfo> {
+ const response = await client["github-integration"]["app-info"].$get();
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ const result = await response.json();
+ return result;
+}
diff --git a/apps/web/src/fetchers/github-integration/get-github-integration.ts b/apps/web/src/fetchers/github-integration/get-github-integration.ts
new file mode 100644
index 000000000..66973dcec
--- /dev/null
+++ b/apps/web/src/fetchers/github-integration/get-github-integration.ts
@@ -0,0 +1,19 @@
+import { client } from "@kaneo/libs";
+
+async function getGithubIntegration(projectId: string) {
+ const response = await client["github-integration"].project[
+ ":projectId"
+ ].$get({
+ param: { projectId },
+ });
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ const data = await response.json();
+ return data;
+}
+
+export default getGithubIntegration;
diff --git a/apps/web/src/fetchers/github-integration/list-repositories.ts b/apps/web/src/fetchers/github-integration/list-repositories.ts
new file mode 100644
index 000000000..cfd6cbc56
--- /dev/null
+++ b/apps/web/src/fetchers/github-integration/list-repositories.ts
@@ -0,0 +1,20 @@
+import { client } from "@kaneo/libs";
+import type { InferResponseType } from "hono";
+
+export type ListRepositoriesResponse = InferResponseType<
+ (typeof client)["github-integration"]["repositories"]["$get"]
+>;
+
+async function listRepositories(): Promise<ListRepositoriesResponse> {
+ const response = await client["github-integration"].repositories.$get();
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ const result = await response.json();
+ return result;
+}
+
+export default listRepositories;
diff --git a/apps/web/src/fetchers/github-integration/verify-github-installation.ts b/apps/web/src/fetchers/github-integration/verify-github-installation.ts
new file mode 100644
index 000000000..b8ea08ef1
--- /dev/null
+++ b/apps/web/src/fetchers/github-integration/verify-github-installation.ts
@@ -0,0 +1,28 @@
+import { client } from "@kaneo/libs";
+import type { InferRequestType, InferResponseType } from "hono";
+
+export type VerifyGithubInstallationRequest = InferRequestType<
+ (typeof client)["github-integration"]["verify"]["$post"]
+>["json"];
+
+export type VerifyGithubInstallationResponse = InferResponseType<
+ (typeof client)["github-integration"]["verify"]["$post"]
+>;
+
+async function verifyGithubInstallation(
+ data: VerifyGithubInstallationRequest,
+): Promise<VerifyGithubInstallationResponse> {
+ const response = await client["github-integration"].verify.$post({
+ json: data,
+ });
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ const result = await response.json();
+ return result;
+}
+
+export default verifyGithubInstallation;
diff --git a/apps/web/src/fetchers/user/sign-in.ts b/apps/web/src/fetchers/user/sign-in.ts
index 7a5b3d962..fd99b2e52 100644
--- a/apps/web/src/fetchers/user/sign-in.ts
+++ b/apps/web/src/fetchers/user/sign-in.ts
@@ -11,7 +11,6 @@ const signIn = async ({ email, password }: SignInFormValues) => {
if (!response.ok) {
const error = await response.text();
- console.log(error);
throw new Error(error);
}
diff --git a/apps/web/src/hooks/mutations/github-integration/use-create-github-integration.ts b/apps/web/src/hooks/mutations/github-integration/use-create-github-integration.ts
new file mode 100644
index 000000000..0d897df25
--- /dev/null
+++ b/apps/web/src/hooks/mutations/github-integration/use-create-github-integration.ts
@@ -0,0 +1,47 @@
+import createGithubIntegration, {
+ type CreateGithubIntegrationRequest,
+} from "@/fetchers/github-integration/create-github-integration";
+import deleteGithubIntegration from "@/fetchers/github-integration/delete-github-integration";
+import verifyGithubInstallation, {
+ type VerifyGithubInstallationRequest,
+} from "@/fetchers/github-integration/verify-github-installation";
+import { useMutation, useQueryClient } from "@tanstack/react-query";
+
+export function useCreateGithubIntegration() {
+ const queryClient = useQueryClient();
+
+ return useMutation({
+ mutationFn: ({
+ projectId,
+ data,
+ }: {
+ projectId: string;
+ data: CreateGithubIntegrationRequest;
+ }) => createGithubIntegration(projectId, data),
+ onSuccess: (_, { projectId }) => {
+ queryClient.invalidateQueries({
+ queryKey: ["github-integration", projectId],
+ });
+ },
+ });
+}
+
+export function useDeleteGithubIntegration() {
+ const queryClient = useQueryClient();
+
+ return useMutation({
+ mutationFn: (projectId: string) => deleteGithubIntegration(projectId),
+ onSuccess: (_, projectId) => {
+ queryClient.invalidateQueries({
+ queryKey: ["github-integration", projectId],
+ });
+ },
+ });
+}
+
+export function useVerifyGithubInstallation() {
+ return useMutation({
+ mutationFn: (data: VerifyGithubInstallationRequest) =>
+ verifyGithubInstallation(data),
+ });
+}
diff --git a/apps/web/src/hooks/queries/github-integration/use-get-github-integration.ts b/apps/web/src/hooks/queries/github-integration/use-get-github-integration.ts
new file mode 100644
index 000000000..e50210e76
--- /dev/null
+++ b/apps/web/src/hooks/queries/github-integration/use-get-github-integration.ts
@@ -0,0 +1,12 @@
+import getGithubIntegration from "@/fetchers/github-integration/get-github-integration";
+import { useQuery } from "@tanstack/react-query";
+
+function useGetGithubIntegration(projectId: string) {
+ return useQuery({
+ queryKey: ["github-integration", projectId],
+ queryFn: () => getGithubIntegration(projectId),
+ enabled: !!projectId,
+ });
+}
+
+export default useGetGithubIntegration;
diff --git a/apps/web/src/query-client/index.ts b/apps/web/src/query-client/index.ts
index 211179e46..eddc9faee 100644
--- a/apps/web/src/query-client/index.ts
+++ b/apps/web/src/query-client/index.ts
@@ -5,6 +5,7 @@ const queryClient = new QueryClient({
queries: {
refetchOnWindowFocus: false,
refetchOnMount: false,
+ retry: false,
},
},
});
diff --git a/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/settings.tsx b/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/settings.tsx
index 1a9c6f61f..348270038 100644
--- a/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/settings.tsx
+++ b/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/settings.tsx
@@ -1,4 +1,5 @@
import PageTitle from "@/components/page-title";
+import { GitHubIntegrationSettings } from "@/components/project/github-integration-settings";
import { TasksImportExport } from "@/components/project/tasks-import-export";
import { Button } from "@/components/ui/button";
import {
@@ -448,6 +449,21 @@ function ProjectSettings() {
</div>
)}
+ {project && (
+ <div className="bg-white dark:bg-zinc-900 rounded-lg border border-zinc-200 dark:border-zinc-800">
+ <div className="p-4 md:p-6">
+ <h2 className="text-sm font-medium text-zinc-900 dark:text-zinc-100 mb-1">
+ GitHub Integration
+ </h2>
+ <p className="text-sm text-zinc-500 dark:text-zinc-400 mb-4">
+ Configure GitHub integration for your project.
+ </p>
+
+ <GitHubIntegrationSettings projectId={project.id} />
+ </div>
+ </div>
+ )}
+
{project && (
<div className="bg-white dark:bg-zinc-900 rounded-lg border border-zinc-200 dark:border-zinc-800">
<div className="p-4 md:p-6">
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 25b2e0fa8..ee3beea86 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -38,6 +38,9 @@ importers:
'@hono/zod-validator':
specifier: ^0.5.0
+ '@octokit/webhooks':
+ specifier: ^14.0.2
+ version: 14.0.2
'@oslojs/crypto':
specifier: ^1.0.1
version: 1.0.1
@@ -62,6 +65,9 @@ importers:
hono:
specifier: ^4.7.11
version: 4.8.0
+ octokit:
+ specifier: ^5.0.3
+ version: 5.0.3
pg:
specifier: ^8.16.0
version: 8.16.1
@@ -289,6 +295,9 @@ importers:
tailwindcss-animate:
specifier: ^1.0.7
version: 1.0.7([email protected])
+ tiptap-markdown:
+ specifier: ^0.8.10
+ version: 0.8.10(@tiptap/[email protected](@tiptap/[email protected]))
zod:
specifier: ^3.25.67
version: 3.25.67
@@ -1219,6 +1228,113 @@ packages:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'}
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-kgTeTsWmpUX+s3Fs4EK4w1K+jWCDB6ClxLSWUWTyhlw7+L3jHtuXDR4QtABu2GsmCMdk67xRhruiXotS3ay3Yw==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-P2J5pB3pjiGwtJX4WqJVYCtNkcZ+j5T2Wm14aJAEIC3WJOrv12jvBley3G1U/XI8q9o1A7QMG54LiFED2BiFlg==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-TthWzYxuHKLAbmxdFZwFlmwVyvynpyPmjwc+2/cI3cvbT7mHtsAW9b1LvQaNnAuWL+pFnqtxdmrU8QpF633i1g==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-TOqId/+am5yk9zor0RGibmlqn4V0h8vzjxlw/wYr3qzkQxl8aBPur384D1EyHtqvfz0syeXji4OUvKkHvxk/Gw==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-GV9IW134PHsLhtUad21WIeP9mlJ+QNpFd6V9vuPWmaiN25HEJeEQUcS4y5oRuqCm9iWDLtfIs+9K8uczBXKr6A==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-qVq1vdjLLZdE8kH2vDycNNjuJRCD1q2oet1nA/GXWaYlpDxlR7rdVhX/K/oszXslXiQIiqrQf+rdhDlA99JdTQ==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-ODsoD39Lq6vR6aBgvjTnA3nZGliknKboc9Gtxr7E4WDNqY24MxANKcuDQSF0jzapvGb3KWOEDrKfve4HoWGK+g==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-hoYicJZaqISMAI3JfaDr1qMNi48OctWuOih1m80bkYow/ayPw6Jj52tqWJ6GEoFTk1gBqfanSoI1iY99Z5+ekQ==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-j1nQNU1ZxNFx2ZtKmL4sMrs4egy5h65OMDmSbVyuCzjOcwsHq6EaYjOTGXPQxgfiN8dJ4CriYHk6zF050WEULg==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-QnhMYEQpnYbEPn9cae+wXL2LuPMFglmfeuDJXXsyxIXdoORwkLK8y0cHhd/5du9MbO/zdG/BXixzB7EEwU63eQ==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-7QoLPRh/ssEA/HuHBHdVdSgF8xNLz/Bc5m9fZkArJE5bb6NmVkDm3anKxXPmN1zh6b5WKZPRr3697xKT/yM3qQ==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-Q8nFIagNLIZgM2odAraelMcDssapc+lF+y3OlcIPxyAU+knefO8KmozGqfnma1xegRDP4z5M73ABsamn72bOcA==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA==}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-90MF5LVHjBedwoHyJsgmaFhEN1uzXyBDRLEBe7jlTYx/fEhPAk3P3DAJsfZwC54m8hAIryosJOL+UuZHB3K3yA==}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-crfpnIoFiBtRkvPqOyLOsw12XsveYuY2ieP6uYDosoUegBJpSVxGwut9sxUgFFcll3VTOTqpUf8yGd8x1OmAkQ==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=6'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-16iNOa4rTTjaWtfsPGJcYYL79FJakseX8TQFIPfVuSPC3s5nkS/DSNQPFPc5lJHgEDBWNMxSApHrEymNblhA9w==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=6'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-kJVUQk6/dx/gRNLWUnAWKFs1kVPn5O5CYZyssyEoNYaFedqZxsfYs7DwI3d67hGz4qOwaJ1dpm07hOAD1BXx6g==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=6'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-KUoYR77BjF5O3zcwDQHRRZsUvJwepobeqiSSdCJ8lWt27FZExzb0GgVxrhhfuyF6z2B2zpO0hN5pteni1sqWiw==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=7'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-S+EVhy52D/272L7up58dr3FNSMXWuNZolkL4zMJBNIfIxyZuUcczsQAU4b5w6dewJXnKYVgSHSV5wxitMSW1kw==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': ^7.0.0
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-KRA7VTGdVyJlh0cP5Tf94hTiYVVqmt2f3I6mnimmaVz4UG3gQV/k4mDJlJv3X67iX6rmN7gSHCF8ssqeMnmhZg==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-iYj4SJG/2bbhh+iIpFmG5u49DtJ4lipQ+aPakjL9OKpsGY93wM8w06gvFbEQxcMsZcCvk5th5KkIm2m8o14aWA==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-MFlzzoDJVw/GcbfzVC1RLR36QqkTLUf79vLVO3D+xn7r0QgxnFoLZgtrzxiQErAjFUOdH6fas2KeQJ1yr/qaXQ==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-16TtZXNOfH8RaRsV+iag5dTYeJvdOdZDBcpEPCULdKS3eTRJqAYxBNZPFaDJ3cx3WNyvbaQ0IxsPpnaR/tgGFA==}
+ engines: {node: '>= 20'}
+
resolution: {integrity: sha512-qtSrqCqRU93SjEBedz987tvWao1YQSELjBhGkHYGVP7Dg0lBWP6d+uZEIt5gxTAYio/YWWlhivmRABvRfPLmnQ==}
engines: {node: '>= 16.0.0'}
@@ -2451,6 +2567,9 @@ packages:
'@tiptap/[email protected]':
resolution: {integrity: sha512-Z1bKAfHl14quRI3McmdU+bs675jp6/iexEQTI9M9oHa6l3McFF38g9N3xRpPPX02MX83DghsUPupndUW/yJvEQ==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-AX+AbjH/rH5ezX1fbK8onC/a+HyQHo7QGmvoxAE42n22OsciAxvZoZNEr22tbXs8WfP1nIsBjKDpgPm3HjOZbA==}
+
resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}
@@ -2487,15 +2606,24 @@ packages:
resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==}
+
resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-1XPwR0+MgXLWfTn9gCsZ55AHOKW1WN+P9vr0PaQh5aerR9LLQXUbjfEAFhjmEmyoYFWAyuN2Mqkn40MZ4ukjBw==}
+
resolution: {integrity: sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==}
resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA==}
+
resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==}
@@ -2653,6 +2781,9 @@ packages:
resolution: {integrity: sha512-cU8v/EGSrnH+HnxV2z0J7/blxH8gq7Xh2JFT6Aroax7UohdmiJJlxApMxtKfuI7z68NvvVcmR78k2LbT6efhRg==}
engines: {node: '>= 18'}
+ resolution: {integrity: sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==}
+
resolution: {integrity: sha512-EwhOpyXiOEL/lKzHz9AW1msWFNzGc/z+LzeB3/jnFJpxu+th2yqvzsSWas1v9jgs9+xiXJcD5A8CJxAG2TaghQ==}
@@ -2666,6 +2797,9 @@ packages:
resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}
+ resolution: {integrity: sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==}
+
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
engines: {node: '>=8'}
@@ -3091,6 +3225,9 @@ packages:
resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
+ resolution: {integrity: sha512-ZvLdcY8P+N8mGQJahJV5G4U88CSvT1rP8ApL6uETe88MBXrBHAkZlSEySdUlyztF7ccb+Znos3TFqaepHxdhBg==}
+
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
@@ -3532,6 +3669,9 @@ packages:
resolution: {integrity: sha512-o5vL7aDWatOTX8LzaS1WMoaoxIiLRQJuIKKe2wAw6IeULDHaqbiqiggmx+pKvZDb1Sj+pE46Sn1T7lCqfFtg1Q==}
engines: {node: '>=16'}
+ resolution: {integrity: sha512-TxFAc76Jnhb2OUu+n3yz9RMu4CwGfaT788br6HhEDlvWfdeJcLUsxk1Hgw2yJio0OXsxv7pyIPmvECY7bMbluA==}
+
resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}
hasBin: true
@@ -3811,6 +3951,10 @@ packages:
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-+bwYsAIRmYv30NTmBysPIlgH23ekVDriB07oRxlPIAH5PI0yTMSxg5i5Xy0OetcnZw+nk/caD4szD7a9YZ3QyQ==}
+ engines: {node: '>= 20'}
+
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
@@ -4384,10 +4528,19 @@ packages:
resolution: {integrity: sha512-E1d3oP2emgJ9dRQZdf3Kkn0qJgI6ZLpyS5z6ZkY1DF3kaQaBsGZsndEpHwx+eC+tYM41HaSNvNtLx8tU57FzTQ==}
+ resolution: {integrity: sha512-iDVkR2BjAqkTDtFX0h94yVvE2AihCXlF0Q7RIXSJPRSR5I0PA1TMuAg6FHFpmqTn4tPxJ0by0CK7PUMlnFLGEQ==}
+ peerDependencies:
+ '@tiptap/core': ^2.0.3
+
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
engines: {node: '>=8.0'}
+ resolution: {integrity: sha512-/m8M+2BJUpoJdgAHoG+baCwBT+tf2VraSfkBgl0Y00qIWt41DJ8R5B8nsEw0I58YwF5IZH6z24/2TobDKnqSWw==}
+ engines: {node: '>=12'}
+
resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}
@@ -4483,6 +4636,12 @@ packages:
resolution: {integrity: sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==}
+ resolution: {integrity: sha512-dcmbeSrOdTnsjGjUfAlqNDJrhxXizjAz94ija9Qw8YkZ1uu0d+GoZzyH+Jb9tIIqvGsadUfwg+22k5aDqqwzbw==}
+
+ resolution: {integrity: sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A==}
+
resolution: {integrity: sha512-Qp+iiD+qCRnUek+nDoYvtWX7tfnYyXsrOnJ452FRTgOyKmTM7TUJ3l+PLPJOOWPTUyKISKp4isC5JJPSXUjGgw==}
engines: {node: '>=18.12.0'}
@@ -5414,6 +5573,153 @@ snapshots:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.19.1
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-app': 8.0.1
+ '@octokit/auth-unauthenticated': 7.0.1
+ '@octokit/core': 7.0.2
+ '@octokit/oauth-app': 8.0.1
+ '@octokit/plugin-paginate-rest': 13.1.0(@octokit/[email protected])
+ '@octokit/types': 14.1.0
+ '@octokit/webhooks': 14.0.2
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-oauth-app': 9.0.1
+ '@octokit/auth-oauth-user': 6.0.0
+ '@octokit/request': 10.0.2
+ '@octokit/request-error': 7.0.0
+ '@octokit/types': 14.1.0
+ toad-cache: 3.7.0
+ universal-github-app-jwt: 2.2.2
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-oauth-device': 8.0.1
+ '@octokit/auth-oauth-user': 6.0.0
+ '@octokit/request': 10.0.2
+ '@octokit/types': 14.1.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/oauth-methods': 6.0.0
+ '@octokit/request': 10.0.2
+ '@octokit/types': 14.1.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-oauth-device': 8.0.1
+ '@octokit/oauth-methods': 6.0.0
+ '@octokit/request': 10.0.2
+ '@octokit/types': 14.1.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/request-error': 7.0.0
+ '@octokit/types': 14.1.0
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-token': 6.0.0
+ '@octokit/graphql': 9.0.1
+ '@octokit/request': 10.0.2
+ '@octokit/request-error': 7.0.0
+ '@octokit/types': 14.1.0
+ before-after-hook: 4.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/types': 14.1.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/request': 10.0.2
+ '@octokit/types': 14.1.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-oauth-app': 9.0.1
+ '@octokit/auth-oauth-user': 6.0.0
+ '@octokit/auth-unauthenticated': 7.0.1
+ '@octokit/core': 7.0.2
+ '@octokit/oauth-authorization-url': 8.0.0
+ '@octokit/oauth-methods': 6.0.0
+ '@types/aws-lambda': 8.10.150
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/oauth-authorization-url': 8.0.0
+ '@octokit/request': 10.0.2
+ '@octokit/request-error': 7.0.0
+ '@octokit/types': 14.1.0
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.2
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.2
+ '@octokit/types': 14.1.0
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.2
+ '@octokit/types': 14.1.0
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.2
+ '@octokit/request-error': 7.0.0
+ '@octokit/types': 14.1.0
+ bottleneck: 2.19.5
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.2
+ '@octokit/types': 14.1.0
+ bottleneck: 2.19.5
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/types': 14.1.0
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/endpoint': 11.0.0
+ '@octokit/request-error': 7.0.0
+ '@octokit/types': 14.1.0
+ fast-content-type-parse: 3.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/openapi-types': 25.1.0
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/openapi-webhooks-types': 12.0.3
+ '@octokit/request-error': 7.0.0
+ '@octokit/webhooks-methods': 6.0.0
+
'@orama/[email protected]': {}
'@oslojs/[email protected]':
@@ -6671,6 +6977,8 @@ snapshots:
'@tiptap/extension-text-style': 2.14.0(@tiptap/[email protected](@tiptap/[email protected]))
'@tiptap/pm': 2.14.0
+ '@types/[email protected]': {}
+
dependencies:
'@babel/parser': 7.27.0
@@ -6698,7 +7006,7 @@ snapshots:
dependencies:
- '@types/node': 22.15.32
+ '@types/node': 24.0.3
optional: true
@@ -6721,8 +7029,15 @@ snapshots:
dependencies:
'@types/unist': 3.0.3
+ '@types/[email protected]': {}
+
'@types/[email protected]': {}
+ '@types/[email protected]':
+ dependencies:
+ '@types/linkify-it': 3.0.5
+ '@types/mdurl': 1.0.5
+
dependencies:
'@types/linkify-it': 5.0.0
@@ -6732,6 +7047,8 @@ snapshots:
dependencies:
'@types/unist': 3.0.3
+ '@types/[email protected]': {}
+
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -6772,7 +7089,7 @@ snapshots:
dependencies:
- '@types/node': 22.15.32
+ '@types/node': 24.0.3
optional: true
'@ungap/[email protected]': {}
@@ -6892,6 +7209,8 @@ snapshots:
node-addon-api: 8.3.1
node-gyp-build: 4.8.4
+
dependencies:
bindings: 1.5.0
@@ -6912,6 +7231,8 @@ snapshots:
readable-stream: 3.6.2
optional: true
+
dependencies:
fill-range: 7.1.1
@@ -6933,7 +7254,7 @@ snapshots:
dependencies:
- '@types/node': 22.15.32
+ '@types/node': 24.0.3
'@types/ws': 8.18.1
optional: true
@@ -7300,6 +7621,8 @@ snapshots:
+
@@ -7733,6 +8056,8 @@ snapshots:
+
dependencies:
argparse: 2.0.1
@@ -8264,6 +8589,20 @@ snapshots:
+ dependencies:
+ '@octokit/app': 16.0.1
+ '@octokit/core': 7.0.2
+ '@octokit/oauth-app': 8.0.1
+ '@octokit/plugin-paginate-graphql': 6.0.0(@octokit/[email protected])
+ '@octokit/plugin-paginate-rest': 13.1.0(@octokit/[email protected])
+ '@octokit/plugin-rest-endpoint-methods': 16.0.0(@octokit/[email protected])
+ '@octokit/plugin-retry': 8.0.1(@octokit/[email protected])
+ '@octokit/plugin-throttling': 11.0.1(@octokit/[email protected])
+ '@octokit/request-error': 7.0.0
+ '@octokit/types': 14.1.0
+ '@octokit/webhooks': 14.0.2
+
dependencies:
wrappy: 1.0.2
@@ -8995,10 +9334,20 @@ snapshots:
dependencies:
'@popperjs/core': 2.11.8
+ dependencies:
+ '@tiptap/core': 2.14.0(@tiptap/[email protected])
+ '@types/markdown-it': 13.0.9
+ markdown-it: 14.1.0
+ markdown-it-task-lists: 2.1.1
+ prosemirror-markdown: 1.13.2
+
dependencies:
is-number: 7.0.0
+
@@ -9093,6 +9442,10 @@ snapshots:
unist-util-is: 6.0.0
unist-util-visit-parents: 6.0.1
+
+
dependencies:
acorn: 8.14.1