File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 "license" : " MIT" ,
2121 "devDependencies" : {
2222 "@types/node" : " ^25.0.3" ,
23- "@typescript-eslint/eslint-plugin" : " ^8.51 .0" ,
24- "@typescript-eslint/parser" : " ^8.51 .0" ,
23+ "@typescript-eslint/eslint-plugin" : " ^8.52 .0" ,
24+ "@typescript-eslint/parser" : " ^8.52 .0" ,
2525 "builtin-modules" : " ^5.0.0" ,
2626 "esbuild" : " ^0.27.2" ,
2727 "eslint" : " ^9.39.2" ,
Original file line number Diff line number Diff line change @@ -394,14 +394,24 @@ export class GitHubKanbanView extends ItemView {
394394 const normalizedItemUrl = this . normalizeUrl ( itemUrl ) ;
395395
396396 let fullProjectData : any = null ;
397- const fmNum = this . parseNumber ( frontmatter . number ) ;
398- if ( fmNum !== null ) {
399- fullProjectData = cachedItemsForProject . find ( ( ci : any ) => Number ( ci . number ) === fmNum ) || null ;
400- if ( fullProjectData ) matchedNumbers . add ( fmNum ) ;
401- }
402- if ( ! fullProjectData && normalizedItemUrl ) {
397+
398+ // Try URL matching first (most reliable for cross-repository projects)
399+ if ( normalizedItemUrl ) {
403400 fullProjectData = cachedItemsForProject . find ( ( ci : any ) => ci . normalizedUrl === normalizedItemUrl ) || null ;
404- if ( fullProjectData && fullProjectData . normalizedUrl ) matchedUrls . add ( fullProjectData . normalizedUrl ) ;
401+ if ( fullProjectData && fullProjectData . normalizedUrl ) {
402+ matchedUrls . add ( fullProjectData . normalizedUrl ) ;
403+ }
404+ }
405+
406+ // Fall back to number matching only if URL didn't match
407+ if ( ! fullProjectData ) {
408+ const fmNum = this . parseNumber ( frontmatter . number ) ;
409+ if ( fmNum !== null ) {
410+ fullProjectData = cachedItemsForProject . find ( ( ci : any ) => Number ( ci . number ) === fmNum ) || null ;
411+ if ( fullProjectData ) {
412+ matchedNumbers . add ( fmNum ) ;
413+ }
414+ }
405415 }
406416
407417 if ( isInProjectFolder || fullProjectData || fileMatchesProject ) {
You can’t perform that action at this time.
0 commit comments