Skip to content

AutoVersioningEnabled#3

Merged
skypaint-96 merged 6 commits into
mainfrom
AutoVersioning
Jul 10, 2025
Merged

AutoVersioningEnabled#3
skypaint-96 merged 6 commits into
mainfrom
AutoVersioning

Conversation

@skypaint-96

Copy link
Copy Markdown
Owner

PR Classification

Enhancement of CI/CD pipeline and code cleanup.

PR Summary

This pull request updates the CI/CD pipeline to support all branches and improves code readability and maintainability across several files. Key changes include:

  • dotnet.yml: Enhanced CI/CD pipeline with support for all branches and added release job.
  • ChatBot.razor: Method name changed to SendMessageAsync for asynchronous operation.
  • AIServiceFactory.cs, ChatBotService.cs, CompanyService.cs, ProblemReportService.cs, ServiceNowDataGeneratorService.cs, ServiceNowDataImporter.cs, TrendingService.cs: Added this for member variable references to improve clarity.
  • AIForITSM.csproj: Updated package references for flexibility and added Nerdbank.GitVersioning.
  • Directory.Build.props and Directory.Packages.props: Introduced to centralize project settings and manage package versions.

Enhanced the CI and release process in `dotnet.yml` by updating the `push` event to include all branches, ensuring a full repository clone for accurate versioning with Nerdbank.GitVersioning. The test step has been renamed for clarity, and the version output variable has been updated to `SemVer2`. Additionally, the release job now features a more detailed setup for creating GitHub releases, including proper tagging and automatic release notes generation.
This commit introduces the `Nerdbank.GitVersioning` package for improved version management in the project. Several files, including `ChatBot.razor`, `AIServiceFactory.cs`, and `CompanyService.cs`, were refactored to consistently use the `this` keyword for member variables, enhancing code readability and maintaining a consistent coding style. Additionally, the `ConfigurationService.cs` was updated to improve performance by changing return types to empty arrays, and centralized package version management was implemented through the new `Directory.Packages.props` file.
This commit introduces a new step in the GitHub Actions workflow to automatically locate the project file for publishing. The "Detect publishable project" step uses PowerShell to prioritize web projects and falls back to the first `.csproj` file if none are found. The detected project path is then utilized in the publish step, replacing the previous hardcoded project file reference.
@skypaint-96 skypaint-96 merged commit c1fc980 into main Jul 10, 2025
4 checks passed
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.

1 participant