File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -629,8 +629,10 @@ func (p *DefaultProjectCommandBuilder) buildProjectPlanCommand(ctx *command.Cont
629
629
foundDir := false
630
630
631
631
for _ , f := range modifiedFiles {
632
- if filepath .Dir (f ) == cmd .RepoRelDir {
632
+ // Check if the file is in the directory or any subdirectory of the target
633
+ if strings .HasPrefix (filepath .Dir (f ), cmd .RepoRelDir ) {
633
634
foundDir = true
635
+ break
634
636
}
635
637
}
636
638
@@ -654,8 +656,10 @@ func (p *DefaultProjectCommandBuilder) buildProjectPlanCommand(ctx *command.Cont
654
656
foundDir := false
655
657
656
658
for _ , p := range repoCfgProjects {
657
- if filepath .Dir (f ) == p .Dir {
659
+ // Check if the file is in the directory or any subdirectory of the project directory
660
+ if strings .HasPrefix (filepath .Dir (f ), p .Dir ) {
658
661
foundDir = true
662
+ break
659
663
}
660
664
}
661
665
You can’t perform that action at this time.
0 commit comments