-
Notifications
You must be signed in to change notification settings - Fork 191
GitHubTeams: Add New/Update/Remove Functions #222
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
GitHubTeams: Add New/Update/Remove Functions #222
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. |
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. 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.
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.
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.
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.
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
GitHubTeams
module:Add-GitHubTeam
Update-GitHubTeam
Remove-GitHubTeam
It also adds the
TeamName
parameter to theGet-GitHubTeam
function 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-GitHubTeam
Add-GitHubTeam
Update-GitHubTeam
Remove-GitHubTeam
Positional Binding has been set as
false
for the three functions, andPosition
attributes added to the function's mandatory parameters.Issues Fixed
None
References
GitHub Teams API
Checklist
is reporting back clean.