11import { App , TFile } from "obsidian" ;
2- import { GitHubTrackerSettings , RepositoryTracking , ProjectData } from "./types" ;
2+ import { GitHubTrackerSettings , RepositoryTracking } from "./types" ;
33import { escapeBody } from "./util/escapeUtils" ;
44import { NoticeManager } from "./notice-manager" ;
55import { GitHubClient } from "./github-client" ;
@@ -56,41 +56,14 @@ export class IssueFileManager {
5656 allIssuesIncludingRecentlyClosed ,
5757 ) ;
5858
59- // Batch fetch project data if tracking is enabled globally
60- let projectDataMap = new Map < string , ProjectData [ ] > ( ) ;
61- if ( this . settings . enableProjectTracking ) {
62- const nodeIds = openIssues
63- . filter ( ( issue : any ) => issue . node_id )
64- . map ( ( issue : any ) => issue . node_id ) ;
65-
66- if ( nodeIds . length > 0 ) {
67- this . noticeManager . debug (
68- `Fetching project data for ${ nodeIds . length } issues`
69- ) ;
70- projectDataMap = await this . gitHubClient . fetchProjectDataForItems ( nodeIds ) ;
71- }
72- }
73-
74- // Get tracked project IDs from global settings
75- const trackedProjectIds = this . settings . trackedProjects . map ( p => p . id ) ;
76-
7759 // Create or update issue files (openIssues contains filtered issues from main.ts)
60+ // Note: projectData is only added for project items, not for repository issues
7861 for ( const issue of openIssues ) {
79- let projectData = issue . node_id ? projectDataMap . get ( issue . node_id ) : undefined ;
80-
81- // Filter by tracked projects from global settings
82- if ( projectData && trackedProjectIds . length > 0 ) {
83- projectData = projectData . filter ( p =>
84- trackedProjectIds . includes ( p . projectId )
85- ) ;
86- }
87-
8862 await this . createOrUpdateIssueFile (
8963 effectiveRepo ,
9064 ownerCleaned ,
9165 repoCleaned ,
9266 issue ,
93- projectData ,
9467 ) ;
9568 }
9669 }
@@ -100,7 +73,6 @@ export class IssueFileManager {
10073 ownerCleaned : string ,
10174 repoCleaned : string ,
10275 issue : any ,
103- projectData ?: ProjectData [ ] ,
10476 ) : Promise < void > {
10577 // Generate filename using template
10678 const templateData = createIssueTemplateData ( issue , repo . repository ) ;
@@ -141,7 +113,7 @@ export class IssueFileManager {
141113 ) ;
142114 }
143115
144- let content = await this . contentGenerator . createIssueContent ( issue , repo , comments , this . settings , projectData ) ;
116+ let content = await this . contentGenerator . createIssueContent ( issue , repo , comments , this . settings ) ;
145117
146118 if ( file ) {
147119 if ( file instanceof TFile ) {
@@ -174,7 +146,6 @@ export class IssueFileManager {
174146 repo ,
175147 comments ,
176148 this . settings ,
177- projectData ,
178149 ) ;
179150
180151 // Merge persist blocks back into new content
0 commit comments