Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Add reset before switching to default branch #41

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

torbacz
Copy link
Owner

@torbacz torbacz commented Oct 3, 2024

Updated method SwitchToDefaultBranch to CleanAndSwitchToDefaultBranch to include a hard reset before switching branches. This ensures the repository is cleaned before branch switch to avoid conflicts and inconsistencies. Adjusted method calls and interface accordingly.

Updated method `SwitchToDefaultBranch` to `CleanAndSwitchToDefaultBranch` to include a hard reset before switching branches. This ensures the repository is cleaned before branch switch to avoid conflicts and inconsistencies. Adjusted method calls and interface accordingly.
Copy link

github-actions bot commented Oct 3, 2024

Code Coverage Results

Coverage Type Threshold Actual Coverage Status
Line 80% 85% Generic badge
Branch 80% 80% Generic badge

Code Coverage Summary

Code Coverage Details
Generated on: 10/03/2024 - 17:40:45
Parser: MultiReportParser (2x CoberturaParser)
Assemblies: 2
Classes: 8
Files: 8
Covered lines: 205
Uncovered lines: 34
Coverable lines: 239
Total lines: 561
Line coverage: 85.7% (205 of 239)
Covered branches: 102
Total branches: 126
Branch coverage: 80.9% (102 of 126)
Tag: 38_11166900068
Name Covered Uncovered Coverable Total Line coverage Covered Total Branch coverage
DependencyUpdated.Core 117 27 144 350 81.2% 71 92 77.1%
DependencyUpdated.Core.Config.AzureDevOpsConfig 21 2 23 58 91.3% 10 10 100%
DependencyUpdated.Core.Config.Project 27 1 28 74 96.4% 23 24 95.8%
DependencyUpdated.Core.Config.UpdaterConfig 6 16 22 58 27.2% 2 16 12.5%
DependencyUpdated.Core.Models.DependencyDetails 1 0 1 3 100% 0 0
DependencyUpdated.Core.Models.UpdateResult 1 0 1 3 100% 0 0
DependencyUpdated.Core.Updater 61 8 69 154 88.4% 36 42 85.7%
DependencyUpdated.Projects.DotNet 88 7 95 211 92.6% 31 34 91.1%
DependencyUpdated.Projects.DotNet.ConfigureServices 0 2 2 15 0% 0 0
DependencyUpdated.Projects.DotNet.DotNetUpdater 88 5 93 196 94.6% 31 34 91.1%

@torbacz torbacz merged commit b6c157c into main Oct 3, 2024
2 checks passed
@torbacz torbacz deleted the bugfix/cleanRepoBeforeEachUpdate branch October 3, 2024 17:41
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