Uh oh!
There was an error while loading. Please reload this page.
GitHubRepositories: Add New-GitHubRepositoryFromTemplate Function - #221
GitHubRepositories: Add New-GitHubRepositoryFromTemplate Function#221Howard Wolosky (HowardWolosky) merged 18 commits into
Conversation
Simon Heather (X-Guardian)
commented
Jun 7, 2020
Can we trigger the CI for this PR? |
Howard Wolosky (HowardWolosky)
commented
Jun 9, 2020
I'll kick off a CI build a little bit later today after the current one ends. |
Howard Wolosky (HowardWolosky)
commented
Jun 10, 2020
/azp run PowerShellForGitHub-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Simon Heather (X-Guardian)
commented
Jun 12, 2020
Can we trigger the CI for this PR? |
Howard Wolosky (HowardWolosky)
commented
Jun 12, 2020
/azp run PowerShellForGitHub-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Simon Heather (X-Guardian)
commented
Jun 12, 2020
A weird CI failure on MacOS for the static code analysis step: 2|$results=Invoke-ScriptAnalyzer-Path ./ –Recurse
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Collection was modified; enumeration operation may not execute.May be related to this: Collection was modified; enumeration operation may not execute when running Invoke-ScriptAnalyzer can you run the CI again and see if it is consistent? |
Howard Wolosky (HowardWolosky)
commented
Jun 12, 2020
Yeah, I've been seeing that pop up from time to time. I've just been waiting out a fix for that bug. |
Howard Wolosky (HowardWolosky)
commented
Jun 12, 2020
/azp run PowerShellForGitHub-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Howard Wolosky (@HowardWolosky) Can you please open a new issue in the PSScriptAnalyzer repo with steps to repro: https://github.com/PowerShell/PowerShell/issues/new?assignees=&labels=Issue-Question&template=Bug_Report.md&title=My+bug+report |
…rove ScriptAnalyzer installation to not skip publisher and check and not allow clobber (#236) #221 reported that this repo causes PSScriptAnalyzer to sporadically throw an error. In order to report the full error needed for analysis, report the full stack trace. In order to make this easier, I've updated `Invoke-ScriptAnalyzer` to run within a `try/catch using -ErrorAction Stop`, and report any error found with `$_.Exception.StackTrace` before re-throwing the error.
Simon Heather (X-Guardian)
commented
Jun 15, 2020
Can we trigger the CI for this PR? |
Howard Wolosky (HowardWolosky)
commented
Jun 19, 2020
I can once the conflicts stemming from #242 have been resolved. |
Howard Wolosky (HowardWolosky)
left a comment
There was a problem hiding this comment.
Thanks for adding this functionality!
Some feedback is included for you to review.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Simon Heather (X-Guardian)
commented
Jun 21, 2020
Can we trigger the CI for this PR? |
Howard Wolosky (HowardWolosky)
commented
Jun 21, 2020
/azp run PowerShellForGitHub-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Howard Wolosky (HowardWolosky)
left a comment
There was a problem hiding this comment.
Super minor additional changes, and then we can get this merged. Thanks for the new feature!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Howard Wolosky (HowardWolosky)
left a comment
There was a problem hiding this comment.
Just noticed one bug before I was about to run CI. I'll kick off CI and then merge this in once that gets fixed.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Howard Wolosky <HowardWolosky@users.noreply.github.com>
Co-authored-by: Howard Wolosky <HowardWolosky@users.noreply.github.com>
Simon Heather (X-Guardian)
commented
Jun 24, 2020
Howard Wolosky (@HowardWolosky), ready for CI. |
Howard Wolosky (HowardWolosky)
commented
Jun 24, 2020
/azp run PowerShellForGitHub-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Simon Heather (X-Guardian)
commented
Jun 26, 2020
Howard Wolosky (@HowardWolosky) , can we trigger the CI for this PR? |
Howard Wolosky (HowardWolosky)
commented
Jun 26, 2020
Sure thing. Will kick it off once the current one completes, and then get this merged in. |
Howard Wolosky (HowardWolosky)
commented
Jun 26, 2020
/azp run PowerShellForGitHub-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Howard Wolosky (HowardWolosky)
commented
Jun 30, 2020
Simon Heather (@X-Guardian) - looks like this work doesn't fully support pipeline input, and the tests aren't sufficiently figuring that out either. You're not capturing PowerShellForGitHub/GitHubRepositories.ps1 Lines 363 to 366 in d96541e
PowerShellForGitHub/Tests/GitHubRepositories.tests.ps1 Lines 332 to 333 in d96541e
Want to take a crack at a fix? |
Added in microsoft#221, `New-GitHubRepositoryFromTemplate was not capturing the passed-in value for the RepositoryName if provided via a Uri parameter. There was a pipeline test in place, however it missed this fact because it was only testing the pipeline input scenario using `-WhatIf`, and the error was only found when calling the actual REST API and GitHub noticed that the `RepositoryName` was missing from the URI.
Howard Wolosky (HowardWolosky)
commented
Jun 30, 2020
I put out a fix with #259 |
…#259) Added in #221, `New-GitHubRepositoryFromTemplate was not capturing the passed-in value for the RepositoryName if provided via a Uri parameter. There was a pipeline test in place, however it missed this fact because it was only testing the pipeline input scenario using `-WhatIf`, and the error was only found when calling the actual REST API and GitHub noticed that the `RepositoryName` was missing from the URI.
Description
This PR adds a new function
New-GitHubRepositoryFromTemplateto theGitHubRepositoriesmodule. This function creates a new GitHub repository from a specified template repository.Parameters
Issues Fixed
References
Create a repository using a template
Checklist
is reporting back clean.