Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
da7a926
Environments and Variables (#320)
pmatthews05 Mar 16, 2025
796956e
Auto-generated changes
github-actions[bot] Mar 16, 2025
ede147d
Merge branch 'main' of https://github.com/PSModule/GitHub into variables
MariusStorhaug Mar 17, 2025
eb851e1
🩹 [Patch]: Refactor variable handling and improve code consistency in…
MariusStorhaug Mar 17, 2025
d52ac4f
Auto-generated changes
github-actions[bot] Mar 17, 2025
e35e252
🩹 [Patch]: Standardize formatting and improve documentation for GitHu…
MariusStorhaug Mar 17, 2025
c26d9ba
Merge branch 'variables' of https://github.com/PSModule/GitHub into v…
MariusStorhaug Mar 17, 2025
6efd65d
Get-GitHubVariable
MariusStorhaug Mar 17, 2025
998f92e
🩹 [Patch]: Update parameter set names and add new functions for creat…
MariusStorhaug Mar 17, 2025
51b68a0
Auto-generated changes
github-actions[bot] Mar 17, 2025
83e1ec5
🩹 [Patch]: Add functions to remove GitHub variables from environments…
MariusStorhaug Mar 17, 2025
ab5180e
Merge branch 'variables' of https://github.com/PSModule/GitHub into v…
MariusStorhaug Mar 17, 2025
7c906a5
🩹 [Patch]: Enhance documentation for variable removal functions and i…
MariusStorhaug Mar 17, 2025
a6818fa
🩹 [Patch]: Enhance Remove-GitHubVariable function to support array in…
MariusStorhaug Mar 17, 2025
a7506b1
🩹 [Patch]: Update Remove-GitHubVariable to allow pipeline input for a…
MariusStorhaug Mar 17, 2025
c8df89a
🩹 [Patch]: Refactor variable removal functions to use ForEach-Object …
MariusStorhaug Mar 17, 2025
e18b4a2
cleanup
MariusStorhaug Mar 17, 2025
6ce319a
🩹 [Patch]: Rename SelectedRepository parameter to SelectedRepositorie…
MariusStorhaug Mar 17, 2025
5768274
Auto-generated changes
github-actions[bot] Mar 17, 2025
5549f87
🩹 [Patch]: Remove unused NewName parameter from Update-GitHubVariable…
MariusStorhaug Mar 17, 2025
b9c00fa
🩹 [Patch]: Remove Value parameter from Update-GitHubVariable function…
MariusStorhaug Mar 17, 2025
bc7090a
🩹 [Patch]: Remove mandatory requirement for Value parameter in Update…
MariusStorhaug Mar 17, 2025
9d2a8a8
🩹 [Patch]: Update APIEndpoint in Update-GitHubVariableOnRepository fu…
MariusStorhaug Mar 17, 2025
58b7111
Auto-generated changes
github-actions[bot] Mar 17, 2025
3dd6b55
🩹 [Patch]: Add PassThru parameter to New-GitHubVariable and Update-Gi…
MariusStorhaug Mar 17, 2025
850a6e1
Auto-generated changes
github-actions[bot] Mar 17, 2025
321a5c2
🩹 [Patch]: Simplify API invocation in variable update functions and a…
MariusStorhaug Mar 17, 2025
19f74ed
Merge branch 'variables' of https://github.com/PSModule/GitHub into v…
MariusStorhaug Mar 17, 2025
8138469
Add retry config
MariusStorhaug Mar 17, 2025
0f51cb0
🩹 [Patch]: Add RetryCount and RetryInterval parameters to Invoke-GitH…
MariusStorhaug Mar 17, 2025
ea00ed4
🩹 [Patch]: Refactor New-GitHubVariable and Update-GitHubVariable func…
MariusStorhaug Mar 17, 2025
bcb5731
🩹 [Patch]: Add AllowNull attribute to Context parameter in Resolve-Gi…
MariusStorhaug Mar 17, 2025
557ab9f
🩹 [Patch]: Remove unused PassThru parameter from New-GitHubVariable f…
MariusStorhaug Mar 17, 2025
83cb08f
🩹 [Patch]: Update Update-GitHubVariable function to conditionally use…
MariusStorhaug Mar 17, 2025
c83eb67
🩹 [Patch]: Restore Visibility parameter in New-GitHubVariable and Upd…
MariusStorhaug Mar 17, 2025
bccba76
🩹 [Patch]: Update OutputType for New-GitHubVariable, Remove-GitHubVar…
MariusStorhaug Mar 17, 2025
63466e0
🩹 [Patch]: Refactor Set-GitHubVariable function to filter Get-GitHubV…
MariusStorhaug Mar 18, 2025
82d778d
🩹 [Test]: Add Pester tests for Set-GitHubVariable function across use…
MariusStorhaug Mar 18, 2025
3f17c50
🩹 [Test]: Add Set-GitHubEnvironment calls in repository tests for imp…
MariusStorhaug Mar 18, 2025
d8f6f80
🩹 [Test]: Refactor and enhance Set-GitHubVariable tests for user and …
MariusStorhaug Mar 18, 2025
5b12cc8
Send exception to throw
MariusStorhaug Mar 18, 2025
2ae757a
Set a prefix for tests to avoid clobbering from other tests
MariusStorhaug Mar 18, 2025
24a7735
🩹 [Test]: Add Connect-GitHubApp calls for organization tests to impro…
MariusStorhaug Mar 18, 2025
a600c45
🩹 [Test]: Update test variable values for consistency across user and…
MariusStorhaug Mar 18, 2025
64fe4a6
🩹 [Test]: Add delay in Remove-GitHubVariable tests to ensure proper c…
MariusStorhaug Mar 18, 2025
cc28c93
🩹 [Test]: Replace Start-Sleep with Write-Verbose for improved variabl…
MariusStorhaug Mar 18, 2025
7d96cce
🩹 [Test]: Simplify assertions in Remove-GitHubVariable tests by check…
MariusStorhaug Mar 18, 2025
e844127
🩹 [Fix]: Improve variable cleanup in Remove-GitHubVariable by adding …
MariusStorhaug Mar 18, 2025
357b5f0
🩹 [Fix]: Enhance error logging in Connect-GithubCli and streamline pa…
MariusStorhaug Mar 18, 2025
048c26a
🩹 [Fix]: Improve error handling in Connect-GithubCli and enhance logg…
MariusStorhaug Mar 18, 2025
f225f4b
🩹 [Fix]: Enhance error handling in Connect-GithubCli by capturing com…
MariusStorhaug Mar 18, 2025
7942580
🩹 [Fix]: Improve warning output formatting in Connect-GithubCli and e…
MariusStorhaug Mar 18, 2025
2a42ef9
🩹 [Fix]: Improve warning output and debug logging in Connect-GithubCl…
MariusStorhaug Mar 18, 2025
03e6685
🩹 [Fix]: Simplify loop syntax in Remove-GitHubVariable for improved r…
MariusStorhaug Mar 18, 2025
a04421e
🩹 [Fix]: Replace Write-Verbose with Write-Host in Remove-GitHubVariab…
MariusStorhaug Mar 18, 2025
20e7ca2
🩹 [Refactor]: Migrate test files to new directory structure and updat…
MariusStorhaug Mar 18, 2025
b89a686
<describe the changes made in the code>
MariusStorhaug Mar 18, 2025
32e763e
Merge branch 'main' of https://github.com/PSModule/GitHub into variables
MariusStorhaug Mar 18, 2025
1434f79
🩹 [Refactor]: Move repository tests to a new directory and restructur…
MariusStorhaug Mar 18, 2025
4980908
Refactor: Update test structure and enhance documentation for better …
MariusStorhaug Mar 18, 2025
946be88
Refactor: Organize test files into a dedicated directory and improve …
MariusStorhaug Mar 18, 2025
1118bbd
Add initial test files for GitHub API interactions and enhance docume…
MariusStorhaug Mar 18, 2025
9112072
Add function to list organization variables and enhance Get-GitHubVar…
MariusStorhaug Mar 18, 2025
e193d9c
Auto-generated changes
github-actions[bot] Mar 18, 2025
5347951
Refactor: Improve formatting and readability in Get-GitHubVariableFro…
MariusStorhaug Mar 18, 2025
843ee53
Add testing framework files and documentation for GitHub API interact…
MariusStorhaug Mar 18, 2025
24f621b
Refactor: Update Set-GitHubVariable calls to use repoName for improve…
MariusStorhaug Mar 18, 2025
526b045
Refactor: Update variable naming in tests for consistency and clarity
MariusStorhaug Mar 18, 2025
5b0c646
Refactor: Update variable naming for clarity in Variables.Tests.ps1
MariusStorhaug Mar 18, 2025
2dce32c
Add tests for Get-GitHubVariable and Get-GitHubVariable -All with out…
MariusStorhaug Mar 18, 2025
0af6958
Refactor: Update Get-GitHubVariable to include Repository parameter f…
MariusStorhaug Mar 18, 2025
89b75d3
Enhance Get-GitHubVariable functions to include pagination in organiz…
MariusStorhaug Mar 18, 2025
29d0293
Implement retry logic in New-GitHubVariable for improved variable ret…
MariusStorhaug Mar 18, 2025
dbe1363
Remove unnecessary variable cleanup for contextData in Connect-GitHub…
MariusStorhaug Mar 18, 2025
561cf27
Add check for context type in Get-GitHubVariableFromOrganization to p…
MariusStorhaug Mar 18, 2025
50d933d
Implement error handling in Get-GitHubVariableFromOrganization to imp…
MariusStorhaug Mar 18, 2025
72965bb
Refactor Connect-GitHubAccount calls to remove unnecessary Format-Lis…
MariusStorhaug Mar 18, 2025
769b63a
Update Get-GitHubContext tests to use Write-Host for output display
MariusStorhaug Mar 18, 2025
a8aa052
Remove unnecessary user context check in Get-GitHubVariableFromOrgani…
MariusStorhaug Mar 18, 2025
9d9f20c
Remove GitHubVariable.Format.ps1xml file to simplify output formatting
MariusStorhaug Mar 18, 2025
9b3d3f6
Refactor output handling in Get-GitHubVariableFromOrganization for im…
MariusStorhaug Mar 18, 2025
f9505bd
Update LogGroup calls in Variables.Tests.ps1 to include 'Context' lab…
MariusStorhaug Mar 18, 2025
4e80ada
Update LogGroup calls in Variables.Tests.ps1 to use Out-String for im…
MariusStorhaug Mar 18, 2025
75a439d
Add GitHubVariable.Format.ps1xml for structured output formatting
MariusStorhaug Mar 18, 2025
411d5b2
Enable debug and verbose output preferences in Variables.Tests.ps1 fo…
MariusStorhaug Mar 19, 2025
3b6ff83
Add testing framework documentation and templates; enhance GitHub API…
MariusStorhaug Mar 19, 2025
c5b9da0
Update APIEndpoint to use ApiBaseUri for Set-GitHubEnvironment function
MariusStorhaug Mar 19, 2025
a1c1db1
Merge branch 'variables' of https://github.com/PSModule/GitHub into v…
MariusStorhaug Mar 19, 2025
d3c940f
Update coverage metrics and enhance error handling in GitHub CLI conn…
MariusStorhaug Mar 19, 2025
05f0c00
Auto-generated changes
github-actions[bot] Mar 19, 2025
79dbb11
Merge branch 'main' of https://github.com/PSModule/GitHub into variables
MariusStorhaug Mar 19, 2025
95f12fa
🔧 [Refactor]: Remove commented-out lines and unnecessary attribute fr…
MariusStorhaug Mar 19, 2025
20799dc
Merge branch 'main' into variables
MariusStorhaug Mar 20, 2025
59ab4f9
🔧 [Refactor]: Simplify API request parameters in Get-GitHubVariableFr…
MariusStorhaug Mar 20, 2025
6fe2c22
Merge branch 'main' of https://github.com/PSModule/GitHub into variables
MariusStorhaug Mar 22, 2025
8d47081
🔧 [Refactor]: Replace Set-GitHubDefaultContext with Switch-GitHubCont…
MariusStorhaug Mar 22, 2025
05a483a
Merge branch 'variables' of https://github.com/PSModule/GitHub into v…
MariusStorhaug Mar 22, 2025
223c79d
🔧 [Tests]: Add TokenType field for various authentication cases in Au…
MariusStorhaug Mar 22, 2025
07d68a0
🔧 [Refactor]: Update repository creation logic based on user type and…
MariusStorhaug Mar 22, 2025
df4c4f5
🔧 [Refactor]: Remove redundant tests for GitHub variable management i…
MariusStorhaug Mar 22, 2025
95757dd
🔧 [Refactor]: Simplify repository creation logic and clean up variabl…
MariusStorhaug Mar 22, 2025
785efa6
🔧 [Refactor]: Rename test suite from 'Template' to 'Variables' and re…
MariusStorhaug Mar 22, 2025
cc0f302
Refactor: Improve variable handling and streamline test suite organiz…
MariusStorhaug Mar 22, 2025
7ad88b0
🔧 [Refactor]: Move repository setup logic to BeforeAll context in Var…
MariusStorhaug Mar 22, 2025
780248c
🔧 [Refactor]: Update variable naming conventions in Variables.Tests.p…
MariusStorhaug Mar 22, 2025
3c0e107
🔧 [Refactor]: Comment out obsolete repository and variable cleanup lo…
MariusStorhaug Mar 22, 2025
8bce4f2
🔧 [Refactor]: Uncomment and enhance repository and variable managemen…
MariusStorhaug Mar 22, 2025
e2ac416
🔧 [Refactor]: Streamline GitHub App connection logic and comment out …
MariusStorhaug Mar 22, 2025
a270426
🔧 [Add]: Introduce testing framework files including IssueForm, READM…
MariusStorhaug Mar 23, 2025
91222ee
🔧 [Fix]: Correct skip condition for organization variable creation te…
MariusStorhaug Mar 23, 2025
be67603
🔧 [Refactor]: Rename repository variable and adjust skip conditions f…
MariusStorhaug Mar 23, 2025
2f1a354
🔧 [Fix]: Correct skip condition for organization variable tests in Va…
MariusStorhaug Mar 23, 2025
c0e3ce2
🔧 [Refactor]: Update variable name for repository in Variables.Tests.ps1
MariusStorhaug Mar 23, 2025
b435cc5
🔧 [Fix]: Update skip condition for organization variable tests in Var…
MariusStorhaug Mar 23, 2025
7b8f522
🔧 [Refactor]: Rename repository suffix to testName in Environments.Te…
MariusStorhaug Mar 23, 2025
ae83d61
🔧 [Refactor]: Store result of New-GitHubRepository calls in a variabl…
MariusStorhaug Mar 23, 2025
e10471a
🔧 [Refactor]: Rename 'SkipTests' to 'Skip' in Process-PSModule.yml
MariusStorhaug Mar 23, 2025
6660e8a
🔧 [Add]: Implement environment tests in Environments.Tests.ps1
MariusStorhaug Mar 25, 2025
2ce11c7
🔧 [Add]: Create PSModule.yml for test configuration and code coverage…
MariusStorhaug Mar 25, 2025
7ae3dba
🔧 [Refactor]: Remove 'Skip' parameter from Process-PSModule.yml workflow
MariusStorhaug Mar 25, 2025
925e316
🔧 [Add]: Log repository details after creation in Variables.Tests.ps1
MariusStorhaug Mar 25, 2025
d919037
🔧 [Refactor]: Update Get-GitHubVariable and related functions to use …
MariusStorhaug Mar 25, 2025
8c72169
fix
MariusStorhaug Mar 25, 2025
87c0926
add output
MariusStorhaug Mar 25, 2025
98756ef
cleanup
MariusStorhaug Mar 25, 2025
f222229
🔧 [Add]: Include debug and verbose logging in Set-GitHubVariable test…
MariusStorhaug Mar 25, 2025
2ce0148
🔧 [Enhance]: Add -Verbose flag to Set-GitHubVariable in tests for imp…
MariusStorhaug Mar 25, 2025
899b66f
🔧 [Enhance]: Add -Debug flag to Set-GitHubVariable in tests for impro…
MariusStorhaug Mar 25, 2025
a7ce9d3
🔧 [Enhance]: Move Set-GitHubVariable call inside LogGroup for improve…
MariusStorhaug Mar 25, 2025
57c4938
🔧 [Enhance]: Refactor repository creation logic for improved readabil…
MariusStorhaug Mar 25, 2025
6510ad7
🔧 [Fix]: Update repository name format in environment tests for consi…
MariusStorhaug Mar 25, 2025
27fc142
🔧 [Fix]: Update OwnerType in AuthCases.ps1 from 'organization' to 're…
MariusStorhaug Mar 25, 2025
4f115af
🔧 [Enhance]: Update LogGroup formatting in Variables.Tests.ps1 for im…
MariusStorhaug Mar 25, 2025
b158468
commit message goes here
MariusStorhaug Mar 25, 2025
6857adb
🔧 [Enhance]: Simplify Get-GitHubVariable examples by removing unneces…
MariusStorhaug Mar 25, 2025
4f66fda
🔧 [Refactor]: Comment out unused test cases in Variables.Tests.ps1 fo…
MariusStorhaug Mar 25, 2025
a636512
Refactor: Remove redundant variables in DataProcessing.ps1 for improv…
MariusStorhaug Mar 25, 2025
d530777
🔧 [Refactor]: Remove unnecessary closing brace in Variables.Tests.ps1…
MariusStorhaug Mar 25, 2025
92a22a6
🔧 [Refactor]: Improve test structure in Variables.Tests.ps1 for bette…
MariusStorhaug Mar 25, 2025
6843557
🔧 [Refactor]: Update visibility parameter in Update-GitHubVariable fu…
MariusStorhaug Mar 25, 2025
50da57f
🔧 [Refactor]: Update Write-Host statements in Variables.Tests.ps1 to …
MariusStorhaug Mar 25, 2025
d67ba10
🔧 [Refactor]: Update Write-Host statements in Variables.Tests.ps1 to …
MariusStorhaug Mar 25, 2025
f3c9be1
🔧 [Refactor]: Add null or empty check for Visibility parameter in Upd…
MariusStorhaug Mar 25, 2025
9b68055
🔧 [Refactor]: Comment out type check for $result in Variables.Tests.p…
MariusStorhaug Mar 25, 2025
2b0d0d0
🔧 [Refactor]: Simplify API invocation by removing unnecessary output …
MariusStorhaug Mar 25, 2025
e739b3c
🔧 [Refactor]: Uncomment test cases in Variables.Tests.ps1 for improve…
MariusStorhaug Mar 25, 2025
4499620
🔧 [Refactor]: Update Get-GitHubVariable call in Variables.Tests.ps1 t…
MariusStorhaug Mar 25, 2025
4d4657a
🔧 [Refactor]: Update PSModule.yml to skip TestResults and CodeCoverag…
MariusStorhaug Mar 26, 2025
3fa581c
🔧 [Refactor]: Enhance logging in Remove-GitHubVariable test by adding…
MariusStorhaug Mar 26, 2025
befb6d7
Fix test
MariusStorhaug Mar 26, 2025
9ad0604
🔧 [Refactor]: Correct Get-GitHubVariable call in Remove-GitHubVariabl…
MariusStorhaug Mar 26, 2025
2a09ffa
🔧 [Refactor]: Update PSModule.yml to skip MacOS and Windows module te…
MariusStorhaug Mar 27, 2025
9d5d8fa
Auto-generated changes
github-actions[bot] Mar 27, 2025
9998982
🔧 [Refactor]: Remove unnecessary null or empty check for result in En…
MariusStorhaug Mar 27, 2025
c953273
🔧 [Refactor]: Enhance Remove-GitHubVariable logic to skip organizatio…
MariusStorhaug Mar 27, 2025
401dc14
🔧 [Refactor]: Correct condition in AfterAll block to remove GitHub va…
MariusStorhaug Mar 27, 2025
423136d
🔧 [Refactor]: Simplify Set-GitHubVariable calls with parameter hashta…
MariusStorhaug Mar 27, 2025
d23d299
🔧 [Refactor]: Add Repository parameter to Get-GitHubVariable and skip…
MariusStorhaug Mar 27, 2025
755df95
🔧 [Refactor]: Update test contexts to skip for GitHub Actions type in…
MariusStorhaug Mar 27, 2025
a311567
🔧 [Refactor]: Add error handling to Get-GitHubVariable for organizati…
MariusStorhaug Mar 27, 2025
693f99b
🔧 [Refactor]: Add error handling to Get-GitHubVariable for organizati…
MariusStorhaug Mar 27, 2025
a3c5318
🔧 [Refactor]: Enhance documentation for GitHub variable retrieval fun…
MariusStorhaug Mar 28, 2025
2ab3a91
🔧 [Refactor]: Enhance output documentation for GitHub variable functi…
MariusStorhaug Mar 28, 2025
95a3a82
🔧 [Refactor]: Update Get-GitHubVariableVisibilityList to enhance outp…
MariusStorhaug Mar 28, 2025
954c32e
🔧 [Refactor]: Remove unnecessary skip configurations in PSModule.yml …
MariusStorhaug Mar 28, 2025
740142e
🔧 [Refactor]: Update test cases for Get-GitHubVariable to include inh…
MariusStorhaug Mar 28, 2025
2247662
🔧 [Refactor]: Move removal of organization variables to AfterAll bloc…
MariusStorhaug Mar 28, 2025
d1ac52a
🔧 [Refactor]: Update documentation links in Update-GitHubTeam and imp…
MariusStorhaug Mar 28, 2025
fd70712
🔧 [Refactor]: Simplify error handling in Get-GitHubVariable by removi…
MariusStorhaug Mar 28, 2025
5094cc7
🔧 [Refactor]: Replace Get-GitHubVariableVisibilityList with Get-GitHu…
MariusStorhaug Mar 29, 2025
bfe4cde
🔧 [Add]: Implement Add-GitHubVariableSelectedRepository function for …
MariusStorhaug Mar 29, 2025
6c848a6
🔧 [Refactor]: Update documentation in Add-GitHubVariableSelectedRepos…
MariusStorhaug Mar 29, 2025
8033a84
🔧 [Add]: Implement Set-GitHubVariableSelectedRepository and Remove-Gi…
MariusStorhaug Mar 29, 2025
29fea8a
Auto-generated changes
github-actions[bot] Mar 29, 2025
17d6072
🔧 [Refactor]: Update alias for RepositoryID parameter in Add-GitHubVa…
MariusStorhaug Mar 29, 2025
2087c46
🔧 [Refactor]: Improve formatting of notification_setting assignment i…
MariusStorhaug Mar 29, 2025
7cab178
🔧 [Refactor]: Move repository removal logic to the organization block…
MariusStorhaug Mar 29, 2025
43719a0
🔧 [Refactor]: Add -Debug and -Verbose parameters to Add-GitHubVariabl…
MariusStorhaug Mar 29, 2025
0b573b6
🔧 [Refactor]: Add idempotent tests for Add-GitHubVariableSelectedRepo…
MariusStorhaug Mar 29, 2025
adff767
🔧 [Refactor]: Update idempotency test descriptions for Add-GitHubVari…
MariusStorhaug Mar 29, 2025
2fd6bb1
🔧 [Refactor]: Enhance variable removal functions to check for existen…
MariusStorhaug Mar 29, 2025
a8c4bdc
🔧 [Fix]: Correct function name typo in Remove-GitHubVariable and upda…
MariusStorhaug Mar 29, 2025
92fa32d
🔧 [Fix]: Update repository selection logic in Remove-GitHubVariableSe…
MariusStorhaug Mar 29, 2025
71e23b1
🔧 [Fix]: Update logic in Remove-GitHubVariableSelectedRepository to c…
MariusStorhaug Mar 29, 2025
a8cb6c5
🔧 [Debug]: Add debug output to Remove-GitHubVariableSelectedRepositor…
MariusStorhaug Mar 29, 2025
9a40b06
🔧 [Enhance]: Add context parameter to Add-GitHubVariableSelectedRepos…
MariusStorhaug Mar 29, 2025
b314ff0
🔧 [Fix]: Update repository ID references in Add-GitHubVariableSelecte…
MariusStorhaug Mar 29, 2025
0b21de3
🔧 [Enhance]: Skip tests on MacOS and Windows in PSModule.yml; update …
MariusStorhaug Mar 29, 2025
a840b8b
🔧 [Enhance]: Add skip options for SourceCode and PSModule tests in PS…
MariusStorhaug Mar 29, 2025
99b590b
🔧 [Refactor]: Remove debug output from Add-GitHubVariableSelectedRepo…
MariusStorhaug Mar 29, 2025
5665a2f
🔧 [Enhance]: Add skip options for CodeCoverage, TestResults, and Buil…
MariusStorhaug Mar 29, 2025
a89b086
🔧 [Enhance]: Update PSModule.yml to skip Build Docs and improve test …
MariusStorhaug Mar 29, 2025
2b58b66
🔧 [Enhance]: Update PSModule.yml to remove unnecessary skip options; …
MariusStorhaug Mar 29, 2025
b1cd08b
🔧 [Enhance]: Add cleanup logic to remove test repositories after exec…
MariusStorhaug Mar 29, 2025
752cddb
🔧 [Enhance]: Refactor repository cleanup logic in Repositories.Tests.…
MariusStorhaug Mar 29, 2025
4abec53
🔧 [Enhance]: Update repository cleanup logic in Repositories.Tests.ps…
MariusStorhaug Mar 29, 2025
ccfa011
🔧 [Refactor]: Simplify repository creation logic in Variables.Tests.p…
MariusStorhaug Mar 29, 2025
cf74ab2
🔧 [Refactor]: Rename variables for improved clarity in Repositories.T…
MariusStorhaug Mar 29, 2025
fa39c1e
🔧 [Refactor]: Update repository name variable in Environments.Tests.p…
MariusStorhaug Mar 29, 2025
768a5d5
🔧 [Refactor]: Simplify repository removal logic in Repositories.Tests…
MariusStorhaug Mar 29, 2025
678de53
🔧 [Refactor]: Enhance environment tests in Environments.Tests.ps1 and…
MariusStorhaug Mar 29, 2025
d840dbf
🔧 [Refactor]: Rename test suite from 'Template' to 'Repositories' and…
MariusStorhaug Mar 29, 2025
b15facf
🔧 [Refactor]: Remove commented-out tests for IAT UAT and PAT in Varia…
MariusStorhaug Mar 29, 2025
ee6916d
🔧 [Refactor]: Add unique GUID to repository names in Environments.Tes…
MariusStorhaug Mar 29, 2025
055650b
🔧 [Refactor]: Add additional GitHub repository creation for improved …
MariusStorhaug Mar 29, 2025
2ef6ed2
🔧 [Refactor]: Remove obsolete test files and skip unnecessary tests i…
MariusStorhaug Mar 30, 2025
c169d37
🔧 [Refactor]: Skip unnecessary tests in PSModule.yml and suppress lon…
MariusStorhaug Mar 30, 2025
4fae984
🔧 [Refactor]: Remove unnecessary skip configurations in PSModule.yml …
MariusStorhaug Mar 30, 2025
630bc93
🔧 [Refactor]: Adjust sleep duration in Variables.Tests.ps1 for improv…
MariusStorhaug Mar 30, 2025
eae3b7d
🔧 [Refactor]: Update variable naming conventions in Variables.Tests.p…
MariusStorhaug Mar 30, 2025
57b843a
🔧 [Refactor]: Replace hyphens with underscores in variable names for …
MariusStorhaug Mar 30, 2025
073230f
🔧 [Refactor]: Update variable naming and adjust sleep duration in Var…
MariusStorhaug Mar 30, 2025
0c3d5c4
🔧 [Refactor]: Update variable concatenation in Variables.Tests.ps1 fo…
MariusStorhaug Mar 30, 2025
1cb9ee5
🔧 [Refactor]: Update variable naming to uppercase for improved consis…
MariusStorhaug Mar 30, 2025
0a18a0f
🔧 [Cleanup]: Remove obsolete test files for Emojis and Auth to stream…
MariusStorhaug Mar 30, 2025
af76054
🔧 [Add]: Introduce testing framework files and configurations for use…
MariusStorhaug Mar 30, 2025
d135aea
🔧 [Refactor]: Move organization variable setup to BeforeAll for impro…
MariusStorhaug Mar 30, 2025
5d2287c
🔧 [Update]: Enable testing for MacOS and Windows in PSModule.yml
MariusStorhaug Mar 30, 2025
c9bc354
🔧 [Refactor]: Consolidate organization variable setup into a single l…
MariusStorhaug Mar 30, 2025
4f4a2c5
🔧 [Refactor]: Remove obsolete issue form and authentication cases, an…
MariusStorhaug Mar 30, 2025
bdd2bbb
🔧 [Refactor]: Remove debug and verbose options from Process-PSModule.…
MariusStorhaug Mar 30, 2025
b2471f2
Merge branch 'main' of https://github.com/PSModule/GitHub into variables
MariusStorhaug Mar 30, 2025
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
3 changes: 3 additions & 0 deletions .github/PSModule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Test:
CodeCoverage:
PercentTarget: 50
2 changes: 1 addition & 1 deletion .github/workflows/Update-CoverageReport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- name: Update-CoverageReport
uses: PSModule/GitHub-Script@v1
with:
Script: . '.\scripts\Update-CoverageReport.ps1'
Script: scripts/Update-CoverageReport.ps1
28 changes: 13 additions & 15 deletions Coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
<table>
<tr>
<td>Available functions</td>
<td>1023</td>
<td>1021</td>
</tr>
<tr>
<td>Covered functions</td>
<td>164</td>
<td>184</td>
</tr>
<tr>
<td>Missing functions</td>
<td>859</td>
<td>837</td>
</tr>
<tr>
<td>Coverage</td>
<td>16.03%</td>
<td>18.02%</td>
</tr>
</table>

Expand Down Expand Up @@ -131,10 +131,10 @@
| `/orgs/{org}/actions/secrets/{secret_name}` | :x: | :x: | | | :x: |
| `/orgs/{org}/actions/secrets/{secret_name}/repositories` | | :x: | | | :x: |
| `/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}` | :x: | | | | :x: |
| `/orgs/{org}/actions/variables` | | :x: | | :x: | |
| `/orgs/{org}/actions/variables/{name}` | :x: | :x: | :x: | | |
| `/orgs/{org}/actions/variables/{name}/repositories` | | :x: | | | :x: |
| `/orgs/{org}/actions/variables/{name}/repositories/{repository_id}` | :x: | | | | :x: |
| `/orgs/{org}/actions/variables` | | :white_check_mark: | | :white_check_mark: | |
| `/orgs/{org}/actions/variables/{name}` | :white_check_mark: | :white_check_mark: | :white_check_mark: | | |
| `/orgs/{org}/actions/variables/{name}/repositories` | | :white_check_mark: | | | :white_check_mark: |
| `/orgs/{org}/actions/variables/{name}/repositories/{repository_id}` | :white_check_mark: | | | | :white_check_mark: |
| `/orgs/{org}/attestations/{subject_digest}` | | :x: | | | |
| `/orgs/{org}/blocks` | | :white_check_mark: | | | |
| `/orgs/{org}/blocks/{username}` | :white_check_mark: | :white_check_mark: | | | :white_check_mark: |
Expand All @@ -159,7 +159,6 @@
| `/orgs/{org}/copilot/billing/selected_teams` | :x: | | | :x: | |
| `/orgs/{org}/copilot/billing/selected_users` | :x: | | | :x: | |
| `/orgs/{org}/copilot/metrics` | | :x: | | | |
| `/orgs/{org}/copilot/usage` | | :x: | | | |
| `/orgs/{org}/dependabot/alerts` | | :x: | | | |
| `/orgs/{org}/dependabot/secrets` | | :x: | | | |
| `/orgs/{org}/dependabot/secrets/public-key` | | :x: | | | |
Expand Down Expand Up @@ -255,7 +254,6 @@
| `/orgs/{org}/settings/network-configurations/{network_configuration_id}` | :x: | :x: | :x: | | |
| `/orgs/{org}/settings/network-settings/{network_settings_id}` | | :x: | | | |
| `/orgs/{org}/team/{team_slug}/copilot/metrics` | | :x: | | | |
| `/orgs/{org}/team/{team_slug}/copilot/usage` | | :x: | | | |
| `/orgs/{org}/teams` | | :white_check_mark: | | :white_check_mark: | |
| `/orgs/{org}/teams/{team_slug}` | :white_check_mark: | :white_check_mark: | :white_check_mark: | | |
| `/orgs/{org}/teams/{team_slug}/discussions` | | :x: | | :x: | |
Expand Down Expand Up @@ -298,7 +296,7 @@
| `/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun` | | | | :x: | |
| `/repos/{owner}/{repo}/actions/oidc/customization/sub` | | :x: | | | :x: |
| `/repos/{owner}/{repo}/actions/organization-secrets` | | :x: | | | |
| `/repos/{owner}/{repo}/actions/organization-variables` | | :x: | | | |
| `/repos/{owner}/{repo}/actions/organization-variables` | | :white_check_mark: | | | |
| `/repos/{owner}/{repo}/actions/permissions` | | :x: | | | :x: |
| `/repos/{owner}/{repo}/actions/permissions/access` | | :x: | | | :x: |
| `/repos/{owner}/{repo}/actions/permissions/selected-actions` | | :x: | | | :x: |
Expand Down Expand Up @@ -331,8 +329,8 @@
| `/repos/{owner}/{repo}/actions/secrets` | | :x: | | | |
| `/repos/{owner}/{repo}/actions/secrets/public-key` | | :x: | | | |
| `/repos/{owner}/{repo}/actions/secrets/{secret_name}` | :x: | :x: | | | :x: |
| `/repos/{owner}/{repo}/actions/variables` | | :x: | | :x: | |
| `/repos/{owner}/{repo}/actions/variables/{name}` | :x: | :x: | :x: | | |
| `/repos/{owner}/{repo}/actions/variables` | | :white_check_mark: | | :white_check_mark: | |
| `/repos/{owner}/{repo}/actions/variables/{name}` | :white_check_mark: | :white_check_mark: | :white_check_mark: | | |
| `/repos/{owner}/{repo}/actions/workflows` | | :white_check_mark: | | | |
| `/repos/{owner}/{repo}/actions/workflows/{workflow_id}` | | :white_check_mark: | | | |
| `/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable` | | | | | :white_check_mark: |
Expand Down Expand Up @@ -438,8 +436,8 @@
| `/repos/{owner}/{repo}/environments/{environment_name}/secrets` | | :x: | | | |
| `/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key` | | :x: | | | |
| `/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}` | :x: | :x: | | | :x: |
| `/repos/{owner}/{repo}/environments/{environment_name}/variables` | | :x: | | :x: | |
| `/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}` | :x: | :x: | :x: | | |
| `/repos/{owner}/{repo}/environments/{environment_name}/variables` | | :white_check_mark: | | :white_check_mark: | |
| `/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}` | :white_check_mark: | :white_check_mark: | :white_check_mark: | | |
| `/repos/{owner}/{repo}/events` | | :x: | | | |
| `/repos/{owner}/{repo}/forks` | | :white_check_mark: | | :white_check_mark: | |
| `/repos/{owner}/{repo}/git/blobs` | | | | :x: | |
Expand Down
51 changes: 51 additions & 0 deletions src/classes/public/Repositories/GitHubRepository.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
class GitHubRepository {
# The name of the repository.
[string] $Name

# The full name of the repository.
# This is the name of the repository including the owner.
# Example: "octocat/Hello-World".
[string] $FullName

# The ID of the repository.
[string] $NodeID

# The database ID of the repository.
[UInt64] $DatabaseID

# The description of the repository.
[string] $Description

# The owner of the repository.
[string] $Owner

# The URL of the repository.
[string] $Url

# The date and time the repository was created.
[System.Nullable[datetime]] $CreatedAt

# The date and time the repository was last updated.
[System.Nullable[datetime]] $UpdatedAt

# Simple parameterless constructor
GitHubRepository() {}

# Creates a object from a hashtable of key-vaule pairs.
GitHubRepository([hashtable]$Properties) {
foreach ($Property in $Properties.Keys) {
$this.$Property = $Properties.$Property
}
}

# Creates a object from a PSCustomObject.
GitHubRepository([PSCustomObject]$Object) {
$Object.PSObject.Properties | ForEach-Object {
$this.($_.Name) = $_.Value
}
}

[string] ToString() {
return $this.Name
}
}
45 changes: 45 additions & 0 deletions src/classes/public/Variables/GitHubVariable.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
class GitHubVariable {
# The name of the variable.
[string] $Name

# The value of the variable.
[string] $Value

# The name of the organization or user the variable is associated with.
[string] $Owner

# The name of the repository the variable is associated with.
[string] $Repository

# The name of the environment the variable is associated with.
[string] $Environment

# The date and time the variable was created.
[datetime] $CreatedAt

# The date and time the variable was last updated.
[datetime] $UpdatedAt

# The visibility of the variable.
[string] $Visibility

# The ids of the repositories that the variable is visible to.
[GitHubRepository[]] $SelectedRepositories

# Simple parameterless constructor
GitHubVariable() {}

# Creates a object from a hashtable of key-vaule pairs.
GitHubVariable([hashtable]$Properties) {
foreach ($Property in $Properties.Keys) {
$this.$Property = $Properties.$Property
}
}

# Creates a object from a PSCustomObject.
GitHubVariable([PSCustomObject]$Object) {
$Object.PSObject.Properties | ForEach-Object {
$this.($_.Name) = $_.Value
}
}
}
Loading