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

Feature/GitHub codespaces organization #416

Open
wants to merge 97 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
97 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
786f82a
Remaining Codespaces/organizations coverage
vercellone May 27, 2023
4bfcd85
FunctionsToExport +GitHubCodespace organizations
vercellone May 27, 2023
e566074
USAGE +Codespaces/organizations
vercellone May 27, 2023
041da9c
Consistent CodespaceName help text
vercellone May 27, 2023
9e76b39
DevContainerPath, Geo, rm blank line
vercellone Jun 24, 2023
c4dd8df
fix Start/Stop PassThru help text
vercellone Jun 24, 2023
97a9197
rm bad PSReviewUnusedParameter PassThru
vercellone Jun 24, 2023
9e7f03a
ParameterAtribute formatting
vercellone Jun 24, 2023
a170b4a
billable_owner
vercellone Jun 24, 2023
022e87f
rm idle_timeout_minutes Should Be 30
vercellone Jun 24, 2023
2cc9acb
-super-fake-not-real-org
vercellone Jun 24, 2023
c9f113d
IdleRetentionPeriodMinutes
vercellone Jun 24, 2023
2ee7720
TimeoutMinutes
vercellone Jun 24, 2023
ef0af38
sync w/feature/GitHubCodespaces
vercellone Jun 24, 2023
74d2728
sync master; resolve conflicts
vercellone Aug 30, 2023
d47e8d7
Merge upstream
vercellone Sep 15, 2023
65fde60
Get-GitHubCodespaceMachine
vercellone Sep 15, 2023
ad04f2c
PSUseDeclaredVarsMoreThanA..compliance UriFragment
vercellone Sep 15, 2023
b271f80
USAGE TOC +Codespaces/machines
vercellone Sep 15, 2023
2755b2b
access/selected_users uri for CodespaceUser
vercellone Sep 16, 2023
6f0e5af
Tests: Stop-GitHubCodespace -Org -User
vercellone Sep 16, 2023
cb37fb4
Merge branch 'master' into feature/GitHubCodespaces-organization
vercellone Nov 22, 2023
580a0f7
update codespaces/billing to codespaces/access
vercellone Nov 22, 2023
f1df072
Added missing tests
vercellone Nov 22, 2023
088b6a7
Merge branch 'feature/GitHubCodespaces-organization' of https://githu…
vercellone Nov 22, 2023
d5d9bf2
Organization spelling
vercellone Mar 8, 2024
4fdf8b0
machine spelling
vercellone Mar 8, 2024
4b11fff
Codespace capitalization
vercellone Mar 8, 2024
b517fbd
Codespaces capitalization
vercellone Mar 8, 2024
177af01
Codespace capitalization
vercellone Mar 8, 2024
4bfd422
Add TypeName GitHub.CodespaceMachine
vercellone Mar 8, 2024
48ee1c6
rm Get-GitHubCodespaceMachine property validation
vercellone Mar 8, 2024
a4ecc47
(Add|Remove)-GitHubCodespaceUser 304 Not Modified
vercellone Mar 8, 2024
90b54d0
(Add|Remove)-GitHubCodespaceUser pipeline tests
vercellone Mar 8, 2024
6860757
Avoid copyrighted names
vercellone Mar 8, 2024
c7a046d
Avoid copyrighted names
vercellone Mar 8, 2024
a2aa260
Avoid copyrighted names
vercellone Mar 8, 2024
2dc2efa
Codespaces capitalization
vercellone Mar 8, 2024
f23647c
Add suggested LF
vercellone Mar 8, 2024
94b8e0e
6 Codespace capitalization suggestions
vercellone Mar 8, 2024
307b39b
Uri OwnerName and RepositoryName will be extracted
vercellone Mar 8, 2024
a152ae7
(Add|Remove)-GitHubCodespaceUser OUTPUTS None
vercellone Mar 8, 2024
c369850
selected_members notes
vercellone Mar 8, 2024
c4ec5b7
(Add|Remove)-GitHubCodespaceUser $null =
vercellone Mar 8, 2024
6ba94e8
replace UserName HowerWolosky w/octocat
vercellone Mar 8, 2024
82c35a1
Detailed manage access control usage
vercellone Mar 8, 2024
4c5b7a4
PARAMETER UserName detailed help text
vercellone Mar 8, 2024
f8a82f4
Set-GitHubCodespaceVisibility -User octocat
vercellone Mar 8, 2024
f1fa4f6
CmdletBinding SupportsShouldProcess format
vercellone Mar 8, 2024
a6d81a3
Explicit groupings
vercellone Mar 8, 2024
a411ec8
Delete-GitHubCodespaceUser Alias
vercellone Mar 8, 2024
837c1a3
At this time there is no get visibility
vercellone Mar 8, 2024
f441410
(Add|Remove)-GitHubCodespaceUser perf optimization
vercellone Mar 8, 2024
69f6a02
SentenceCase Visibility
vercellone Mar 8, 2024
cba3aa4
.INPUTS GitHub.User
vercellone Mar 8, 2024
4d1f9ab
machines | Add-GitHubCodespaceAdditionalProperties
vercellone Mar 8, 2024
402beb0
better examples
vercellone Mar 8, 2024
0838682
pipeline validation for SelectedMembers
vercellone Mar 8, 2024
273c854
.PSObject.TypeNames[0] | Should -Be
vercellone Mar 18, 2024
740001f
nits
vercellone Apr 13, 2024
0df6ced
Set-GitHubCodespaceVisibility
vercellone Apr 13, 2024
7e253ab
Made CodespaceName an optional param of the AuthenticatedUser paramet…
vercellone Apr 16, 2024
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
Prev Previous commit
Next Next commit
(Add|Remove)-GitHubCodespaceUser 304 Not Modified
  • Loading branch information
vercellone committed Mar 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit a4ecc471a22c575e6e5edd091e9e6746d9038b21
32 changes: 30 additions & 2 deletions GitHubCodespaces.ps1
Original file line number Diff line number Diff line change
@@ -1148,7 +1148,21 @@ filter Add-GitHubCodespaceUser
{
return
}
Invoke-GHRestMethod @params
try
{
Invoke-GHRestMethod @params
}
catch
{
if ($_.Exception.Message -like '*(304)*') # Not Modified
{
Write-Log -Message "Codespace selected_users not modified. Requested users already included." -Level Verbose
}
else
{
throw
}
}
}

filter Remove-GitHubCodespaceUser
@@ -1221,7 +1235,21 @@ filter Remove-GitHubCodespaceUser
{
return
}
Invoke-GHRestMethod @params
try
{
Invoke-GHRestMethod @params
}
catch
{
if ($_.Exception.Message -like '*(304)*') # Not Modified
{
Write-Log -Message "Codespace selected_users not modified. Requested users already excluded." -Level Verbose
}
else
{
throw
}
}
}

filter Set-GitHubCodespaceVisibility