-
Notifications
You must be signed in to change notification settings - Fork 5
[Feature] Add Organization functions #30
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
private/Organization/Get-GitHubAllOrganization.ps1public/Organization/Blocking/Assert-GitHubOrganizationBlockedUser.ps1public/Organization/Blocking/Get-GitHubOrganizationBlockedUser.ps1public/Organization/Get-GitHubOrganization.ps1public/Organization/Get-GitHubOrganizationAppInstallation.ps1public/Organization/Remove-GitHubOrganization.ps1public/Organization/Set-GitHubOrganization.ps1public/Organization/Set-GitHubOrganizationSecurityFeature.ps1Other fixes:
public/API/Invoke-GitHubAPI.ps1responseinto a response property to allow for a more dynamic interaction between the API function and the specific API endpoint functions.statuscode,responseheaderandrequestinto the object that is returned to the specific API endpoint functions. Required specifically for function that use thestatuscodeas a way to answer if users are blocked or not on Org or user level. i.e. Check if a user is blocked by an organizationAcceptandContent-Typeparameters, to support use of Unicode icons. Reuired as I was playing around withSet-GitHubUser, and setting bio toI :heart: PowerShell.public/Auth/Connect-GitHubAccount.ps1Utilities/$body = $PSBoundParameters | ConvertFrom-HashTable | ConvertTo-Hashtable -NameCaseStyle snake_caseas all the cases for API calls seem to be snake_cased.Utilitiesmodule in a later version. It is kept here for now to not rely on the dependency.Users/Get-GitHubUser. Different function are accessed using switches onGet-GitHubUser. For more info check theGet-GitHubUserfunction./en/component in the links.Write-Output.functionwithfilter, to streamline pipelining between functions. There is very little other doc on this than 'Its likefunctionwhere the base script block is treated asendblock by default. Filters base script block isprocess.