-
Notifications
You must be signed in to change notification settings - Fork 5
🚀 [Feature]: Adding functions to manage Variables
#324
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Description This includes new commands: - Get-GitHubVariable.ps1 - Set-GitHubVariable.ps1 - Remove-GitHubVariable.ps1 - Get-GitHubEnvironment.ps1 - Set-GitHubEnvironment.ps1 - Remove-GitHubEnvironment.ps1 ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ]⚠️ [Security fix] - [x] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas --------- Co-authored-by: Marius Storhaug <marstor@hotmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
… GitHub variable functions
…b variable functions
…ing GitHub variables on repositories and environments
…, repositories, and organizations
…mprove parameter handling
…put and improve parameter handling
…consistently for improved readability
…s for consistency and clarity; add Update-GitHubVariableOnRepository and Update-GitHubVariableOnEnvironment functions for managing GitHub variables.
… function for improved clarity
… for improved clarity
…-GitHubVariableOnOwner function for improved flexibility
…nction to include variable name for precise targeting
… streamline GitHub App connection logic in Repositories.Tests.ps1 for improved clarity and organization
… streamline repository-related tests for improved clarity and organization
…bles.Tests.ps1 for improved clarity
…ts.ps1, Repositories.Tests.ps1, and Variables.Tests.ps1 for improved test isolation
…test coverage in Variables.Tests.ps1
…n PSModule.yml for improved clarity and maintenance
661adeb to
2ef6ed2
Compare
…g line warnings in test files for improved clarity and maintainability
…for improved clarity and maintainability
…ed test reliability and performance
…s1 for improved clarity and consistency
…improved consistency in Variables.Tests.ps1
…iables.Tests.ps1 for improved consistency and reliability
…r improved consistency in naming
…tency in Variables.Tests.ps1
…line the test suite
…r authentication scenarios
…ved test structure and clarity
…og group for improved readability and structure in Variables.Tests.ps1
…d add README and template for user tests
…yml for cleaner workflow execution
|
Module GitHub - 0.19.0 published to the PowerShell Gallery. |
|
GitHub release for GitHub v0.19.0 has been created. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces several functions to manage
Variableson GitHub, including a class, formats and all functions to cover all API endpoint regarding variables.Classes and formats:
GitHubVariable: Added a new classGitHubVariableto represent GitHub variable details.GitHubVariable.Format.ps1xml: Added XML formatting for theGitHubVariableclass to define table and list views.New public functions:
Tests:
tests/Variables.Tests.ps1: Added tests to cover the new functions.Type of change
Checklist