Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
618 stars 240 forks source link

[pipelines][create] Add partial support for github enterprise #1247

Open amrmahdi opened 2 years ago

amrmahdi commented 2 years ago

This change add partial for support for creating pipelines for github enterprise repos.

It is partial because it only supports creating pipelines with existing yaml files, requiring --yaml-path.

Partially addresses #620

Please make sure the code is following contribution guidelines in CONTRIBUTING.md

amrmahdi commented 2 years ago

@aasiddiq Thanks for the review. Would you be able to merge the changes? And once it is merged, when you expect for this change to be officially released?

AustinSmart commented 1 year ago

Any chance this can be merged and released?

coolhome commented 1 year ago

I imagine this was not merged because it is currently not supported.

{
    "$id": "1",
    "innerException": null,
    "message": "This API does not support creating pipelines with repositories of type GitHubEnterprise.",
    "typeName": "Microsoft.Azure.Pipelines.WebApi.UnsupportedRepositoryTypeException, Microsoft.Azure.Pipelines.WebApi",
    "typeKey": "UnsupportedRepositoryTypeException",
    "errorCode": 0,
    "eventId": 3000
}

What an undocumented disappointment this has been.

UPDATE - I was able to implement the PR changes to my local install and it actually worked. The only hiccup I ran into was not knowing the service connection id (guid) instead of the name of the connection. What is preventing this from being released?