Describe the change
Update the function Connect-GitHubApp that uses a App Context to get access tokens for the installations and store these as contexts on the machine, in such a way that it can send multiple requests for access tokens and create contexts simultaneously in parallel. This should speed up the process of connecting to multiple installations for an app.
Issues:
- The following commands are private (and not available in individual runspaces)
- New-GitHubAppInstallationAccessToken
- Set-GitHubContext
Options:
- bring the logic from these into the function
- make these functions somehow available as "public" functions or as class methods.
- find a way to call the private function from the data we can collect by collecting data about the module within the runspace.