Skip to content

Conversation

@tmeckel
Copy link
Owner

@tmeckel tmeckel commented Dec 18, 2025

This pull request introduces support for creating GitHub service endpoints within the Azure DevOps CLI. It adds the necessary backend functionality, tests, and documentation to enable users to manage GitHub service endpoints seamlessly.

Detailed Breakdown

New Features: GitHub Service Endpoint Creation

  • Add support for creating GitHub service endpoints in the CLI, enabling integration with GitHub repositories.
  • Implement Azure DevOps ServiceEndpoint client mocks to facilitate testing of service endpoint operations.

Testing Enhancements

  • Add comprehensive tests for GitHub service endpoint creation to ensure reliability and correctness.
  • Move test context keys to a dedicated test file (create_acc_test.go) for better organization and maintainability.

Documentation Updates

  • Add detailed documentation for GitHub service endpoint creation, guiding users on usage and configuration.

Technical Context

  • No new external dependencies or version requirements introduced.
  • No database migrations or schema changes.
  • No configuration updates required beyond standard usage.
  • Testing improvements include new integration tests for GitHub service endpoint creation and enhanced test organization.

Impact Assessment

  • Changes primarily affect the service endpoint creation feature within the CLI.
  • Backend API changes are backward-compatible and isolated to the new GitHub service endpoint functionality.
  • No impact on unrelated frontend components or other CLI commands.

Closes: #70

remove duplicate context key definitions by consolidating them in the test file where they are primarily used
Add new GitHub service endpoint creation command with support for:
- Personal access token (PAT) authentication
- OAuth/Installation configuration via ConfigurationId
- Interactive token prompting when no credentials provided
- JSON output support for created endpoints
- Default GitHub URL handling
Add comprehensive unit and acceptance tests for GitHub service endpoint
creation functionality. Includes tests for:
- Personal access token authentication
- Configuration ID based authentication
- Endpoint creation validation
- Project reference resolution
- Authorization scheme verification
Adddocumentation for the new `azdo service-endpoint create github` command including usage examples, parameter descriptions, and JSON fields. Updates the help reference and command index to include the new GitHub endpoint creation capability.
@tmeckel tmeckel merged commit 0ae11f5 into master Dec 18, 2025
1 check passed
@tmeckel tmeckel deleted the tmeckel/issue70 branch December 18, 2025 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Implement azdo service-endpoint create github command

2 participants