-
Notifications
You must be signed in to change notification settings - Fork 5
🚀 [Feature]: Enhancements to repository and workflow #363
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
…nd improve functionality - Updated parameter names for consistency across repository creation functions, changing `ForkRepo` to `ForkRepository` and `IncludeAllBranches` for clarity. - Removed deprecated parameters and aliases to streamline the codebase. - Enhanced documentation with clearer examples and descriptions for parameters. - Added argument completers for `Gitignore` and `License` parameters in `New-GitHubRepository`. - Adjusted logic in repository creation functions to ensure proper handling of parameters and context. - Improved overall readability and maintainability of the scripts.
…t for Update-GitHubUser hireable property
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 1 out of 21 changed files in this pull request and generated no comments.
Files not reviewed (20)
- examples/Actions/Workflows.ps1: Language not supported
- src/classes/public/Repositories/GitHubRepository.ps1: Language not supported
- src/classes/public/Workflows/GitHubWorkflowRun.ps1: Language not supported
- src/formats/GitHubWorkflowRun.Format.ps1xml: Language not supported
- src/functions/private/Branches/Get-GitHubBranch.ps1: Language not supported
- src/functions/private/Repositories/Get-GitHubMyRepositories.ps1: Language not supported
- src/functions/private/Repositories/Get-GitHubRepositoryListByID.ps1: Language not supported
- src/functions/private/Repositories/Get-GitHubRepositoryListByOrg.ps1: Language not supported
- src/functions/private/Repositories/Get-GitHubRepositoryListByUser.ps1: Language not supported
- src/functions/private/Repositories/New-GitHubRepositoryAsFork.ps1: Language not supported
- src/functions/private/Repositories/New-GitHubRepositoryFromTemplate.ps1: Language not supported
- src/functions/private/Repositories/New-GitHubRepositoryOrg.ps1: Language not supported
- src/functions/private/Repositories/New-GitHubRepositoryUser.ps1: Language not supported
- src/functions/public/Repositories/Get-GitHubRepository.ps1: Language not supported
- src/functions/public/Repositories/Move-GitHubRepository.ps1: Language not supported
- src/functions/public/Repositories/New-GitHubRepository.ps1: Language not supported
- src/functions/public/Repositories/Remove-GitHubRepository.ps1: Language not supported
- src/functions/public/Repositories/Update-GitHubRepository.ps1: Language not supported
- src/functions/public/Repositories/completers.ps1: Language not supported
- tests/Users.Tests.ps1: Language not supported
…positoryAsFork function
…instead of -Owner in test files
…ository creation functions
…mes for clarity; refactor test files to improve readability
…ry to 'owner' and streamline parameter handling
- Created TEMPLATE.ps1 for structuring tests with Pester. - Implemented Users.Tests.ps1 to cover user-related GitHub API functionalities. - Developed Variables.Tests.ps1 to test GitHub variable management for users and organizations. - Included necessary suppressions for Pester warnings and logging for GitHub Actions. - Established context and test cases for authentication types and variable scopes.
…se 'private' flag instead of visibility string
…nd add debug flag in Environments.Tests for better testing visibility
…Environments.Tests for non-interactive execution
…or cleaner code and improved maintainability
…w-GitHubRepository for consistency and clarity
- Created TEMPLATE.ps1 for structuring tests with Pester. - Implemented user authentication tests in Users.Tests.ps1, including user retrieval and updates. - Developed Variables.Tests.ps1 to manage GitHub variables, including organization and repository scopes. - Added comprehensive logging for test contexts and results. - Included necessary suppressions for Pester-related warnings.
Module GitHub - 0.25.0 published to the PowerShell Gallery. |
GitHub release for GitHub v0.25.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 updates to improve functionality and consistency across the GitHub PowerShell module. Key changes include enhancements to repository and workflow handling, updates to parameter naming for clarity, and adjustments to data types and formatting.
Repository Enhancements
GitHubRepository
class, includingFullName
,CloneUrl
,SshUrl
, andGitUrl
, to provide more comprehensive repository details.AllowUpdateMerge
toAllowUpdateBranch
.DefaultBranchOnly
withIncludeAllBranches
.AutoInit
withAddReadme
GitignoreTemplate
withGitignore
, also no longer a dynamic parameter.LicenseTemplate
withLicense
, also no longer a dynamic parameter.HasDownloads
as it is deprecated.Owner
toOrganization
inGet-GitHubRepositoryListByOrg
for improved semantic accuracy.pushed
for better relevance.Workflow Enhancements
examples/Actions/Workflows.ps1
to demonstrate how to retrieve workflows, start a workflow, and get the latest workflow run.GitHubWorkflowRun
to improve accuracy, such as convertingRunAttempt
touint
andCreatedAt
/UpdatedAt
to nullabledatetime
.Other smaller changes
Get-GitHubRepoBranch
toGet-GitHubBranchList
and updated related examples and parameters for clarity.Type of change
Checklist