PowerShellForGitHub icon indicating copy to clipboard operation
PowerShellForGitHub copied to clipboard

API Coverage: Add Support for Codespaces

Open vercellone opened this issue 2 years ago • 1 comments

Feature Idea Summary

API Coverage #70 Add support for Codespaces.

Feature Idea Additional Details

I'll be targeting coverage for all of the endpoints documented in the following areas:

  • https://docs.github.com/en/rest/codespaces/codespaces
  • https://docs.github.com/en/rest/codespaces/organizations

Requested Assignment

I'm confident I can deliver some (if not all) of these, because I recently wrote pwsh 7 functions covering them all. However, I will likely have questions along the way.

I've started with Get-GitHubCodespace in my feature/GitHubCodespaces branch.

Operating System

OsName : Microsoft Windows 11 Pro OsOperatingSystemSKU : 48 OsArchitecture : 64-bit WindowsVersion : 2009 WindowsBuildLabEx : 22621.1.amd64fre.ni_release.220506-1250 OsLanguage : en-US OsMuiLanguages : {en-US}

PowerShell Version

Name Value


PSVersion 7.3.4 PSEdition Core GitCommitId 7.3.4 OS Microsoft Windows 10.0.22621 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0

Module Version

Running: 0.16.1 Installed: 0.16.1

vercellone avatar Apr 28 '23 05:04 vercellone

I committed 3 functions to my feature/GitHubCodespaces branch.

  • Start-GitHubCodespace
  • Stop-GitHubCodespace
  • Wait-GitHubCodespaceAction
    • This is currently a private (not exported) function that facilitates a -Wait switch for start & stop.
    • Let me know if it makes sense to export it.

vercellone avatar Apr 29 '23 03:04 vercellone