Skip to content

Conversation

@DecSmith42
Copy link
Owner

Replaced GetCurrentDirectory calls with AtomRootDirectory for accurate root resolution. Enhanced file enumeration with filters for .csproj files and added EnumerationOptions to handle recursion, inaccessible paths, and exclusion of special directories. This improves performance and ensures reliable project path resolution.

Replaced `GetCurrentDirectory` calls with `AtomRootDirectory` for accurate root resolution. Enhanced file enumeration with filters for `.csproj` files and added `EnumerationOptions` to handle recursion, inaccessible paths, and exclusion of special directories. This improves performance and ensures reliable project path resolution.
Copilot AI review requested due to automatic review settings December 20, 2025 12:20
@DecSmith42 DecSmith42 enabled auto-merge December 20, 2025 12:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request optimizes project file discovery logic by replacing unreliable current directory detection with a root-based approach using AtomRootDirectory, and enhancing the file search with proper filtering and enumeration options.

Key Changes

  • Replaced GetCurrentDirectory() with AtomRootDirectory for consistent root path resolution
  • Added *.csproj file filter to EnumerateFiles to avoid scanning all files
  • Configured EnumerationOptions with recursion depth limit, inaccessible path handling, and special directory exclusion

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
DecSm.Atom.Module.GithubWorkflows/Generation/GithubWorkflowWriter.cs Updated FindProjectPath method with optimized file discovery using root directory and enumeration options
DecSm.Atom.Module.DevopsWorkflows/Generation/DevopsWorkflowWriter.cs Updated FindProjectPath method with optimized file discovery using root directory and enumeration options

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DecSmith42 DecSmith42 merged commit f803fef into main Dec 20, 2025
71 of 73 checks passed
@DecSmith42 DecSmith42 deleted the patch/2.0.3 branch December 20, 2025 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants