azure-devops-cli-extension
azure-devops-cli-extension copied to clipboard
[Feature Request] pipelines create should support Github Enterprise
Is your feature request related to a problem? Please describe. Yes. I am trying to automate pipeline creation for a client and am unable to do so through the Azure DevOps CLI extension because it does not support Github Enterprise.
Describe the solution you'd like
"ghe" or "githubenterprise" should be an allowed value for --repository-type, and pipeline creation from a Github Enterprise repository should work.
This may require either adding an additional parameter for the github api base url, or parsing the domain from the --repository argument and then appending it and using https://{domain}/api/v3/.
Additional context
Error received when --repository-type is not provided and remotes of local repo point to Github Enterprise:
The following arguments are required: --repository-type. Check command help for valid values.
Error received when --repository-type github is provided along with a --service-connection that resolves to a GHE service connection and a --repository that points to a GHE repo:
Unable to configure a service on the selected GitHub repository. GitHub returned the error 'Bad credentials'.
Thank you for the request and feedback. At present, we are not focusing on extending this to GHE. We are open to contributions on this one - let me know if you need any help or clarification on this.
Upvote at the Developer Community - https://developercommunity.visualstudio.com/t/Add-support-for-githubenterprise-reposit/1684063