Skip to content
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

[FEAT]: Codespaces: Add support for creating codespaces and get machine types #2915

Open
1 task done
Aaron-Junker opened this issue May 2, 2024 · 0 comments
Open
1 task done
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request

Comments

@Aaron-Junker
Copy link

Aaron-Junker commented May 2, 2024

Describe the need

This will allow Octokit to generate new codespaces with available machine types from a repository.

A possible implementation could be a function with the signature Codespace GitHubClient.Codespaces.Create(string repoOwner, string repoName, Machine machineType, string ref="main", CodespaceLocation? location= null, string? displayName = null)

CodespaceLocation is an enum with the values EuropeWest, SoutheastAsia, UsEast, UsWest

To get available machine configurations you could run a function with the signature: MachineCollection GitHubClient.Codespaces.GetAvailableMachines(string repoOwner, string repoName, string? ref=null)

MachineCollection will be a new type that can save multiple Machine objects.

Relevant API docs:
https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#create-a-codespace-in-a-repository
https://docs.github.com/en/rest/codespaces/machines?apiVersion=2022-11-28#list-available-machine-types-for-a-repository

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Aaron-Junker Aaron-Junker added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels May 2, 2024
@kfcampbell kfcampbell added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

2 participants