GitHubTeams: Add New/Update/Remove Functions#222
GitHubTeams: Add New/Update/Remove Functions#222X-Guardian wants to merge 19 commits intomicrosoft:masterfrom X-Guardian:GitHubTeams-Add-New-Remove
Conversation
|
Can we trigger the CI for this PR? |
|
/azp run PowerShellForGitHub-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Can we trigger the CI for this PR? |
|
I've added the |
|
/azp run PowerShellForGitHub-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@HowardWolosky , this PR is ready for review. |
|
Thanks @X-Guardian ... holding off on this one for another few days until the big pipelining change is in so as not to accumulate further debt. I'll start a review on this soon, but there will be just a little bit of additional work needed to align the new functions to the way pipelining will be working with the rest of the module before it gets merged in. As an aside, I'm in agreement on removing implicit positional parameters on these and future functions per our discussion around #219. |
HowardWolosky
left a comment
There was a problem hiding this comment.
Awesome. Thanks for adding in this functionality! Much appreciated.
I have some feedback for you to consider before getting this merged in though. Primarily, it's a matter of adding-in pipeline support to these methods, but there's other feedback as well.
Thanks again.
HowardWolosky
left a comment
There was a problem hiding this comment.
Great update.
I think that there's still room for improvement in the parameter design to enable better pipeline support and reduce the need for the additional Get-GitHubTeam calls in the normal cases.
HowardWolosky
left a comment
There was a problem hiding this comment.
Some additional feedback after looking through this again.
|
@HowardWolosky, do you want me to close this PR and open another one? |
|
Yes, please do. |
|
This PR has been superseded by PR #257 |
Description
This PR adds the following functions to the
GitHubTeamsmodule:Add-GitHubTeamUpdate-GitHubTeamRemove-GitHubTeamIt also adds the
TeamNameparameter to theGet-GitHubTeamfunction to allow getting team details by team name, which is used by the new functions.100% coverage Pester tests have also been added for the following functions:
Get-GitHubTeamAdd-GitHubTeamUpdate-GitHubTeamRemove-GitHubTeamPositional Binding has been set as
falsefor the three functions, andPositionattributes added to the function's mandatory parameters.Issues Fixed
None
References
GitHub Teams API
Checklist
is reporting back clean.