diff --git a/scripts/sync-notion.ts b/scripts/sync-notion.ts index 6beac73..83e66b0 100644 --- a/scripts/sync-notion.ts +++ b/scripts/sync-notion.ts @@ -12,17 +12,9 @@ async function run() { const propStatus = "상태"; const propPR = "GitHub Pull Requests"; - // 데이터베이스 정보 받아오기 (속성 타입 포함) - const dbInfo = await notion.databases.retrieve({ database_id: dbId }); - console.log("Database properties info:", JSON.stringify(dbInfo.properties, null, 2)); - - const { pull_request: pr } = github.context.payload as any; if (!pr) throw new Error("No pull request context available"); - - console.log("pr", pr) - const branch = pr.head.ref; const prUrl = pr.html_url; const prState = pr.merged ? "완료" : pr.state === "open" ? "진행 중" : ""; @@ -50,8 +42,6 @@ async function run() { return fullId === documentId; }) - console.log("searchReasult", searchResult) - if (!searchResult) { throw new Error(`No Notion page found with ID: ${documentId}`); }