-
Notifications
You must be signed in to change notification settings - Fork 0
feat: ✨ implement azdo project create command
#90
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
Added "l" as an alias for the project list command and "r" for the repo command to improve CLI usability and provide quicker access for frequent users. Updated help text in repo command to reflect new argument format including project name.
Added note specifying that `go.uber.org/mock/gomock` must be imported in all test files using mocks to ensure proper mock functionality and avoid missing import errors.
… mockgen command to generate the mock for the Azure DevOps Operations client. This is necessary to enable testing of the new polling functionality for long-running operations.
…he Azure DevOps Operations client. This mock is used to simulate API calls to the Operations endpoint for testing purposes, specifically for polling long-running operations.
…k for the ConnectionFactory interface to include the newly added Operations client. This ensures that tests can properly mock the ClientFactory's ability to provide an Operations client.
…s the Operations client to the ClientFactory interface, allowing other parts of the application to access the Azure DevOps Operations API for managing long-running operations.
…nts the Operations client in the ClientFactory, providing a concrete way to obtain an Operations client for interacting with the Azure DevOps Operations API.
…ling\n\nIntroduces PollOperationResultWithState, a new function that allows polling for a specific operation status. The existing PollOperationResult now calls this new function, making the polling logic more flexible and reusable.
…an issue where the 'omitempty' tag was not being respected in the custom JSON exporter when specific fields were requested. The structExportData function now correctly checks for omitempty and zero values in all serialization paths.
…the 'azdo project create' command with '--no-wait' to exit immediately after queuing, and '--max-wait' to set a custom polling timeout. Corrects the project retrieval logic after creation. Adds process template name and source control type to the output. Implements a unified JSON output structure. Improves the long description and examples for the command.
…n tests for the PollOperationResultWithState function, covering various success and failure scenarios with different target states. This ensures the robustness of the new polling logic.
…ensive negative test cases for the 'azdo project create' command, covering invalid inputs, API errors, and mutually exclusive flags. This improves the command's reliability and error handling.
…the documentation for the 'azdo project' command group to include the updated 'create' subcommand.
Document new 'azdo project create' command with flags and options to guide users in creating Azure DevOps projects, addressing feature request #59.
Refactored project name parsing by introducing `ProjectFromName` and `parseProjectName` for clarity. Added `ProjectFromURL` to support parsing Azure DevOps project URLs in both `dev.azure.com` and `visualstudio.com` formats, ensuring hostname validation. Updated repository parsing functions to use new internal helpers and improved error messages for hostname mismatches.
Added a new `create` subcommand to the project command for creating Azure DevOps projects. Updated usage examples to reflect default organization behavior, improved clarity, and added alias `p` for quicker access.
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.
Closes: #59