Azure / Azure/azure-devops-cli-extension

[Feature Request] pipelines create should support Github Enterprise

Open
#620 2 comments 9 reactions 0 assignees View on GitHub
Feature help wanted
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

**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'.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.