-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Invoke-Git] Return Object & Change to Public Function #80
Conversation
Codecov Report
@@ Coverage Diff @@
## main #80 +/- ##
==================================
Coverage 97% 97%
==================================
Files 38 38
Lines 865 877 +12
==================================
+ Hits 846 859 +13
+ Misses 19 18 -1 |
It seems the changes did not work as expected, it failed to publish to the Wiki. See error https://dev.azure.com/dsccommunity/DscResource.DocGenerator/_build/results?buildId=4801&view=logs&j=5d0a9c4e-8741-5118-af45-406a30fe661c&t=bda0b158-a237-516f-c1d0-31339587c5b5&l=146
|
Maybe this PR is needed to complete everything? 🙂 |
@phbits I will review this once you rebased this PR. 🙂 |
I did the rebase and had to do a force push. After manually resolving conflicts and fixing typos, this PR looks ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Just a few minor comments. 😃
Reviewed 9 of 9 files at r1.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @phbits)
source/Public/Publish-WikiContent.ps1, line 115 at r1 (raw file):
Quoted 6 lines of code…
Write-Verbose -Message $script:localizedData.ConfigGlobalGitMessage if ($PSBoundParameters.ContainsKey('GlobalCoreAutoCrLf')) { $null = Invoke-Git -WorkingDirectory $tempPath.FullName ` -Arguments @( 'config', '--local', 'core.autocrlf', $GlobalCoreAutoCrLf ) }
This must be run before cloning, since it tells git how to treat linebreaks during clone.
tests/unit/public/Publish-WikiContent.Tests.ps1, line 139 at r1 (raw file):
Context 'When publishing Wiki content' {
Can we add a new line before this line?
tests/unit/tasks/Publish_GitHub_Wiki_Content.build.Tests.ps1, line 39 at r1 (raw file):
Quoted 5 lines of code…
} -ParameterFilter { $Arguments[0] -eq 'remote' -and $Arguments[1] -eq 'get-url' -and $Arguments[2] -eq 'origin' }
Indentation looks wrong here.
tests/unit/tasks/Publish_GitHub_Wiki_Content.build.Tests.ps1, line 116 at r1 (raw file):
Quoted 4 lines of code…
$Arguments[0] -eq 'remote' -and $Arguments[1] -eq 'get-url' -and $Arguments[2] -eq 'origin' }
Indentation looks wrong here.
@phbits you need to rebase again since another PR was merged. 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 4 of 9 files reviewed, 4 unresolved discussions (waiting on @johlju)
source/Public/Publish-WikiContent.ps1, line 115 at r1 (raw file):
Previously, johlju (Johan Ljunggren) wrote…
Write-Verbose -Message $script:localizedData.ConfigGlobalGitMessage if ($PSBoundParameters.ContainsKey('GlobalCoreAutoCrLf')) { $null = Invoke-Git -WorkingDirectory $tempPath.FullName ` -Arguments @( 'config', '--local', 'core.autocrlf', $GlobalCoreAutoCrLf ) }
This must be run before cloning, since it tells git how to treat linebreaks during clone.
Done.
tests/unit/public/Publish-WikiContent.Tests.ps1, line 139 at r1 (raw file):
Previously, johlju (Johan Ljunggren) wrote…
Context 'When publishing Wiki content' {
Can we add a new line before this line?
Done.
tests/unit/tasks/Publish_GitHub_Wiki_Content.build.Tests.ps1, line 39 at r1 (raw file):
Previously, johlju (Johan Ljunggren) wrote…
} -ParameterFilter { $Arguments[0] -eq 'remote' -and $Arguments[1] -eq 'get-url' -and $Arguments[2] -eq 'origin' }
Indentation looks wrong here.
Done.
tests/unit/tasks/Publish_GitHub_Wiki_Content.build.Tests.ps1, line 116 at r1 (raw file):
Previously, johlju (Johan Ljunggren) wrote…
$Arguments[0] -eq 'remote' -and $Arguments[1] -eq 'get-url' -and $Arguments[2] -eq 'origin' }
Indentation looks wrong here.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 5 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @phbits)
Pull Request
Pull Request (PR) description
Invoke-Git
Tasks
can only use public functions.Task list
file CHANGELOG.md. Entry should say what was changed and how that
affects users (if applicable), and reference the issue being resolved
(if applicable).
This change is