-
Notifications
You must be signed in to change notification settings - Fork 5
🚀 [Feature]: Align classes and functions for Releases
#347
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
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 7 out of 14 changed files in this pull request and generated no comments.
Files not reviewed (7)
- src/formats/GitHubOwner.Format.ps1xml: Language not supported
- src/formats/GitHubRepository.Format.ps1xml: Language not supported
- src/functions/public/Releases/Get-GitHubRelease.ps1: Language not supported
- src/functions/public/Releases/New-GitHubRelease.ps1: Language not supported
- src/functions/public/Releases/New-GitHubReleaseNote.ps1: Language not supported
- src/functions/public/Repositories/Get-GitHubRepository.ps1: Language not supported
- src/functions/public/Repositories/New-GitHubRepository.ps1: Language not supported
Comments suppressed due to low confidence (1)
.github/PSModule.yml:13
- The indentation in the CodeCoverage section appears inconsistent; ensure that the 'Skip: true' line aligns with 'PercentTarget: 50' for correct YAML parsing.
Skip: true
ReleasesReleases
…ons for consistency
…et-GitHubRepository function
…tories and Get-GitHubRepository functions for improved flexibility
…epository functions for consistency
…rameter in Get-GitHubRepository function
…ction for improved default value assignment based on parameter sets
…ameter for overwriting existing files during download and extraction
…nction to improve clarity and handle Username and Organization parameters more effectively
… to remove unnecessary ValueFromPipelineByPropertyName for ID parameter
…repository with mandatory parameters for Owner, Repository, and Context
…ove parameter handling; add GitHubRelease and ReleaseAsset classes for structured release data.
…tency and clarity in naming conventions
…ed release assets
…return null instead of suppressing exceptions
…views with detailed property mappings
…ow format files for consistency and clarity
…ted functions to track the latest release status
…e with the 'isLatest' flag set to true
…update related format files for consistency
…pository and release in SaveArtifacts.ps1
…eAssetByTag and Get-GitHubReleaseAssetFromLatest
…for clarity and validation
…l examples and links
…y and consistency
- Created TEMPLATE.ps1 for test structure and setup. - Implemented Teams.Tests.ps1 to test GitHub Teams API functionalities including team creation, retrieval, updating, and deletion. - Added Users.Tests.ps1 to validate user-related API calls such as user retrieval and updates. - Developed Variables.Tests.ps1 to cover GitHub variable management, including setting, updating, and removing variables across different scopes (organization, repository, environment).
- Created a template test file for GitHub authentication scenarios. - Implemented tests for GitHub Teams management, including team creation, retrieval, updating, and deletion. - Developed user-related tests for GitHub user management, covering user retrieval and updates. - Added extensive variable management tests, including setting, updating, and removing GitHub variables across different scopes (organization, repository, environment). - Ensured all tests utilize proper logging and context management for better traceability in CI/CD environments.
…or ZIP asset extraction
…ction and make Target parameter mandatory in New-GitHubRelease function
…oke-GitHubAPI and add warning for unknown content types
…line warning for unknown content types
- Created TEMPLATE.ps1 for Pester testing framework setup. - Added Teams.Tests.ps1 to test GitHub Teams API functionalities including team creation, retrieval, updating, and deletion. - Implemented Users.Tests.ps1 to validate user-related API calls such as user retrieval and updates. - Developed Variables.Tests.ps1 to test GitHub variable management across different scopes (organization, repository, environment). - Each test script includes setup and teardown procedures to manage test context and cleanup.
ReleasesReleases
|
Module GitHub - 0.27.0 published to the PowerShell Gallery. |
|
GitHub release for GitHub v0.27.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 significant enhancements to GitHub Release capabilities, including new PowerShell classes, functions, and examples for handling releases and release assets.
Enhancements to GitHub Release capabilities
GitHubReleaseclass to represent release metadata, including properties likeTag,Name,Notes,IsLatest,IsDraft, andIsPrerelease, along with constructors for initializing instances from API responses for both REST and GraphQL.GitHubReleaseAssetclass to handle release asset details, such asUrl,Name,State,ContentType, andDownloads.GitHubReleaseobjects, improving data visualization in PowerShell.Function changes
Internal Enhancements
Resolve-GitHubContextSettingwhere aPerPagevalue of0is replaced with$nullto avoid invalid configurations.Test coverage
Examples
Type of change
Checklist