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

Add support for codespaces #407

Merged
merged 90 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 87 commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
4efc746
Get-GitHubCodespace
Apr 28, 2023
adcd5eb
- Start-GitHubCodespace
vercellone Apr 29, 2023
006ad5b
Add vercellone to contributors list
vercellone Apr 29, 2023
00eab38
Merge branch 'master' into feature/GitHubCodespaces
HowardWolosky Apr 29, 2023
4034912
Format Document
vercellone May 1, 2023
b1b7b73
Reorder parameters
vercellone May 1, 2023
fbb35f0
INPUTS +GitHub.Codespace (round trip)
vercellone May 1, 2023
7590fbb
Mandatory OrganizationName
vercellone May 1, 2023
df55ba9
ParametersSetName Respository => Elements
vercellone May 1, 2023
62af896
dedupe Elements+Uri switch cases
vercellone May 1, 2023
4493b66
defaultAcceptHeader
vercellone May 1, 2023
d07918c
$null -ne $result.codespaces
vercellone May 1, 2023
fdc1821
Start/Stop a Codespace for...authenticated user
vercellone May 1, 2023
8d29c00
mv requirements to .NOTES
vercellone May 1, 2023
2a53725
Internal-only helper method
vercellone May 1, 2023
845af51
2s minimum
vercellone May 1, 2023
8b5e9c1
until on new line
vercellone May 1, 2023
9d955a5
until state -notmatch 'Queued|ing' comments
vercellone May 1, 2023
29c7c39
foreach on new line
vercellone May 1, 2023
4798d57
Start-Stop filter not function
vercellone May 1, 2023
feaeae8
Merge branch 'master' into feature/GitHubCodespaces
vercellone May 1, 2023
f924381
(New and Remove)-GitHubCodespace
vercellone May 1, 2023
cc4bfdc
Merge branch 'master' into feature/GitHubCodespaces
vercellone May 3, 2023
f1417db
GitHubCodespaces.tests.ps1
vercellone May 9, 2023
c2d9604
Option 2: Add-Member RepositoryUrl
vercellone May 9, 2023
e971983
Test Get-GitHubCodespace Uri, Uri FromPipeline
vercellone May 11, 2023
926f024
Tests: (Start|Stop)-GitHubCodespace
vercellone May 11, 2023
18cd74b
Remove-GitHubCodespace -Force
vercellone May 11, 2023
f3016e3
Tests: Delete-GitHubCodespace for auth user
vercellone May 11, 2023
b36e8c7
UserName=Mandatory for Organization parameterset
vercellone May 20, 2023
ca0b509
Remove-GitHubCodespace ConfirmImpact=High
vercellone May 20, 2023
54726ed
Add .LINK per endpoint
vercellone May 20, 2023
d76bfbf
New-GitHubCodespace tests
vercellone May 20, 2023
19c1596
New-GitHubCopespace -Timeout ValidateRange(5, 240)
vercellone May 26, 2023
5e3a23e
Codespaces usage
vercellone May 26, 2023
be44060
Fix a few help/usage discrepancies
vercellone May 27, 2023
80bf3c9
one line Parameter AuthenticatedUser
vercellone Jun 24, 2023
a1cf249
explicit parens
vercellone Jun 24, 2023
261423d
-Depth 5
vercellone Jun 24, 2023
b0106bb
POST
vercellone Jun 24, 2023
81a0675
LF Mandatory
vercellone Jun 24, 2023
bbb9bc7
DELETE
vercellone Jun 24, 2023
42b73fd
Telemetry +Wait
vercellone Jun 24, 2023
c099f00
POST
vercellone Jun 24, 2023
5faf402
-LF
vercellone Jun 24, 2023
89b47e2
+LF
vercellone Jun 24, 2023
53eafcd
-LF
vercellone Jun 24, 2023
4bc4650
-LF
vercellone Jun 24, 2023
010852a
+LF
vercellone Jun 24, 2023
6e32251
-LFUpdate Tests/GitHubCodespaces.tests.ps1
vercellone Jun 24, 2023
0116846
-LF Tests/GitHubCodespaces.tests.ps1
vercellone Jun 24, 2023
1c23319
Should -Be $newGitHubCodespaceParams.Timeout
vercellone Jun 24, 2023
ae91614
Should -Be $newGitHubCodespaceParams.RetentionPeriod
vercellone Jun 24, 2023
4099a2a
DevContainerPath
vercellone Jun 24, 2023
2613f54
rm another bad idle_timeout_minutes assertion
vercellone Jun 24, 2023
112ea6e
Wait with Verbose codespace state message
vercellone Jun 24, 2023
a74743c
Merge branch 'master' into feature/GitHubCodespaces
vercellone Jun 24, 2023
1ad8b8b
PSReviewUnusedParameter w/CheckId
vercellone Jun 24, 2023
2424ec3
dynamically accessed via $propertyMap
vercellone Jun 24, 2023
356743f
HTTP Method case compliance
vercellone Aug 20, 2023
3800ee6
fix Organizaion spelling
vercellone Aug 22, 2023
6b43e30
Geo ValidateSet
vercellone Aug 22, 2023
c06a651
.PARAMETER Force
vercellone Aug 22, 2023
d9c18b6
rm extra .PARAMETER OwnerName,RepositoryName
vercellone Aug 22, 2023
83dee9f
fix .OUTPUTS GitHub.Codespace
vercellone Aug 22, 2023
83f0dca
Merge branch 'feature/GitHubCodespaces' of https://github.com/vercell…
vercellone Aug 22, 2023
2f7a161
Wait, don't Sleep 2 seconds
vercellone Aug 22, 2023
e14eb41
indent Where reponame -eq defaultreponame
vercellone Aug 22, 2023
f32a975
Merge branch 'feature/GitHubCodespaces' of https://github.com/vercell…
vercellone Aug 22, 2023
4c50d9b
fix repoWithPR indent
vercellone Aug 22, 2023
0fe250e
fix New-GitHubCodespace (Before|After)All Tests
vercellone Aug 22, 2023
bbd4871
Add Wait to Telemetry
vercellone Aug 22, 2023
4022033
explicit parens for propertyMap
vercellone Aug 22, 2023
8644c3a
ConvertTo-Json -Depth 5
vercellone Aug 22, 2023
53a2f7a
newGitHubCodespaceParams -Wait
vercellone Aug 23, 2023
69a9ab3
wait for the codespace to be available
vercellone Aug 23, 2023
018a99e
New-GitHubCodespace +Wait Telemetry
vercellone Aug 23, 2023
cac87da
Stop-GitHubCodespace +Wait Telemetry
vercellone Aug 23, 2023
d791d2d
@($codespaces).Count
vercellone Aug 23, 2023
252fdc3
($codespaces | Where-Object { $_ }).Count
vercellone Aug 23, 2023
48a0c91
New-GitHubCodespace tests ALWAYS -Wait
vercellone Aug 23, 2023
1e2f3de
Start/Stop-Codespace Get | Select -First 1
vercellone Aug 23, 2023
e5ae3e9
More aggressive AfterAll Remove-GitHubCodespace
vercellone Aug 23, 2023
00741da
Merge branch 'master' into feature/GitHubCodespaces
vercellone Aug 23, 2023
411e128
rm Context get codespaces for an organization
vercellone Aug 24, 2023
6db38e7
Geo≈location comments
vercellone Aug 24, 2023
c775ea9
OwnerName = $repo.owner.login
vercellone Aug 25, 2023
cfbeb73
@().Count to fix InvokeMethodOnNull exception
vercellone Aug 26, 2023
bf28dfe
datePropertyNames += last_used_at
vercellone Aug 29, 2023
9ad50de
rm geo from codespace formatter
vercellone Aug 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ Thank you to all of our contributors, no matter how big or small the contributio
- **[Simon Heather (@X-Guardian)](https://github.com/X-Guardian)**
- **[Neil White (@variableresistor)](https://github.com/variableresistor)**
- **[Mark Curole(@tigerfansga)](https://github.com/tigerfansga)**
- **[Jason Vercellone(@vercellone)](https://github.com/vercellone)**

----------

Expand Down
41 changes: 41 additions & 0 deletions Formatters/GitHubCodespaces.Format.ps1xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
<ViewDefinitions>
<!--================== GitHub.Codespace Type View =================-->
<View>
<Name>GitHub.Codespace</Name>
<ViewSelectedBy>
<TypeName>GitHub.Codespace</TypeName>
</ViewSelectedBy>
<TableControl>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>id</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>name</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>display_name</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>state</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>geo</PropertyName>
vercellone marked this conversation as resolved.
Show resolved Hide resolved
</TableColumnItem>
<TableColumnItem>
<PropertyName>created_at</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>updated_at</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
</ViewDefinitions>
</Configuration>
Loading