Skip to content

Its possible connect to github enterprise #1793

Closed
microsoft/vscode
#115940

Description

Hi, its possible configure extension with different github. (Use of github enterprise)


👋 Note from the maintainers: If you arrived here looking for GitHub Enterprise Server, please see the wiki. GitHub Enterprise is now tested and officially supported (since 0.51).

Activity

  1. GABeech commented on May 12, 2020

    @GABeech

    It looks like they removed support for GHE with version 0.16.

    It took me a bit of digging, and it doesn't look like there was any notification that this support was going away - but I don't pay close attention to the issues here.

    I'm personally a bit confused about the reasoning (that they don't have resources to test against it). Especially since they appear to be using Octokit.rest which has first class support for GHE out of the box.

  2. drayfar commented on May 12, 2020

    @drayfar

    +1 I can no longer use this extension now that #1616 is in

  3. deerawan commented on May 13, 2020

    @deerawan

    I experienced this issue in 0.16. As interim, we could install the previous version 0.15.0 in VS Code

    image

  4. dvsoukup commented on May 13, 2020

    @dvsoukup

    I read the change log on this. I can sympathize with the lack of hands to assist with development on the enterprise functionality.

    That being said though, it's a no-go to do that. A "solution" is not to just use a previous version (v0.15). Many thousands of people whom use this extension are now effectively blocked from ever getting updates. You rip the rug out from underneath them.

    A nicer scenario would have been to say "hey, we can't continue to develop on enterprise connectivity. But we'll leave in what we have in there now". Let the versions continue to advance, but don't rip this out from folks.

    You leave lots of folks scratching their heads, wasting hours trying to figure out why their tooling isn't working. Only to eventually come here, and see this mysterious decision to pull the plug on GHE support.

    I love this extension, 5-stars for sure. But the decision to do this is of 1-star quality.

  5. azinoviev commented on May 13, 2020

    @azinoviev

    I love this extension, 5-stars for sure. But the decision to do this is of 1-star quality.

    +1

    I'm really upset about this decision. GitHub Enterprise integration was extremely useful feature.
    If there's not enough resources to test it, it'd prefer to have it buggy, than not to have it at all.

  6. Richard-Lynch commented on May 14, 2020

    @Richard-Lynch

    +1, very unhappy to see this feature go, would love to know if there’s any effort which can be made by the community to get it back

  7. alexanderkjeldaas commented on May 15, 2020

    @alexanderkjeldaas
  8. JunhwanPark commented on May 19, 2020

    @JunhwanPark

    I'm waiting for Github Enterprise support..............

  9. khepin commented on May 20, 2020

    @khepin

    Locked out as well. Don't have the JS chops to contribute the required code sadly.

  10. neilenns commented on Jun 1, 2020

    @neilenns

    This is tough. I used this constantly and now it is gone. Sure I can stay with the old version, but then I miss out on all the improvements that are sure to happen over time.

  11. Richard-Lynch commented on Jun 1, 2020

    @Richard-Lynch

    I’m happy to contribute back a fix/enhancement if a maintainer can give some guidance here on what would be acceptable?

    Either extending the GitHub authentication provider extension to support enterprise, or creating a new GitHub Enterprise authentication provider extension to do same?

    Rachel Macfarlane (@RMacfarlane) could you give any guidance? Is there an issue tracking this or is this something that isn't coming back for some reason?

  12. Richard-Lynch commented on Jun 24, 2020

    @Richard-Lynch

    For anyone who is following this ticket, it was mentioned in #1850 that this is being looked at by internal contributors to asses the viability of bringing back enterprise support, so we’ll hopefully know more soon.

    The official workaround right now is to downgrade to 0.15.0 wiki

    Very much appreciated, thanks for the awesome project 😁

    Comment in question #1850 (comment)

  13. jnials commented on Jun 24, 2020

    @jnials

    Yeah, this is a non-starter for me. Left a review to that effect since that may get the attention of someone outside the developement team.

  14. jeduan commented on Jul 10, 2020

    @jeduan

    I'm inconvenienced by this since I can only use an old version now, but actually support this decision.

    I imagine GHE is a minuscule amount of users, and reducing scope will be the best path forward to keep this extension maintained. Everyone who's inconvenienced by this should use their energy convincing their companies who are likely spending tens of thousands of dollars in GHE, to contribute to this extension and VSCode's authentication features. We can't expect a couple of contributors to do all the work without burning out.

  15. ProLoser commented on Jul 10, 2020

    @ProLoser

    I think a problem is the recent vscode architecture change around authentication providers has left an obscure path forward for someone looking to re-add support for enterprise.

    Perhaps someone could do some research/exploration around solutions on how to get this done with the new auth.

  16. 53 remaining items

  17. connor4312 commented on Jun 3, 2021

    @connor4312
    Member

    Jason Williams (@jasonwilliams) are you able to verify whether this works for you?

  18. jasonwilliams commented on Jun 3, 2021

    @jasonwilliams

    Jason Williams (@jasonwilliams) are you able to verify whether this works for you?

    I was waiting for v1.57 to be released to test it, as I’m assuming that’s when I’ll be able to try it out?

  19. rzhao271 commented on Jun 3, 2021

    @rzhao271
    Contributor
  20. jasonwilliams commented on Jun 4, 2021

    @jasonwilliams

    Connor Peet (@connor4312) Raymond Zhao (@rzhao271)

    I can see the list of PRs but clicking on the dropdown shows nothing.

    Extension output is as follows:

    [Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
    GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
    [Info] Error: GraphQL error: Field 'viewerViewedState' doesn't exist on type 'PullRequestChangedFile'
    [Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
    GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
    [Info] Error: GraphQL error: Field 'viewerViewedState' doesn't exist on type 'PullRequestChangedFile'
    [Info] Failed to get pull request review comments: Error: GraphQL error: Field 'path' doesn't exist on type 'PullRequestReviewThread'
    GraphQL error: Field 'isOutdated' doesn't exist on type 'PullRequestReviewThread'
    [Info] Error: GraphQL error: Field 'viewerViewedState' doesn't exist on type 'PullRequestChangedFile'
    

    Github Authentification Output:

    [Info  - 09:22:45.590] Getting user info...
    [Info  - 09:22:46.204] Got account info!
    

    Enterprise version is: v2.22.4

  21. alexr00 commented on Jun 4, 2021

    @alexr00
    Member

    I'm going to mark this issue as verified since we have several users who commented about their success in the PR comment thread.

    Jason Williams (@jasonwilliams) thank you for trying this out. I'd love to provide you with some suggestion about what might be going wrong, but I'm entirely reliant on the community for enterprise support and test. There was some good discussion on how to get things working in the PR comments, which I can see you already found. I recommend commenting there to see if anyone has ideas!

  22. added
    verified
    on Jun 4, 2021
  23. jasonwilliams commented on Jun 4, 2021

    @jasonwilliams

    Alex Ross (@alexr00) understandable, although now Microsoft is a parent to Github I'm surprised you cannot attain an enterprise instance for testing.

  24. Sunchock commented on Jan 7, 2022

    @Sunchock

    Hello there, I would like to share with you my adventures using this plugin.

    First, I've installed VSCode Insiders and GitHub Pull Request and Issues plugin. But when I wanted to install GitHub Pull Request and Issues Nightly Build too as mentionned before : a message in the market-place page tell us of Nightly Build is included in GitHub Pull Request and Issues previsionnal version (So may I have already get it ?). I've set the uri in the settings with my corporate ghe instance base url but it's change nothing.
    Then when i want to log me. It stills redirect me to github.com and i don't know why.

    So when i was to the webpage to log me on github.com. I took the original url and replace the last argument authServer (who it was 'https://github.com' again ..) by the same argument I put in the uri setting and .. it works !
    Finaly i can connect using my GHE instance account but it was only the first step

    In the second part, I had to generate a new token in my GHE account settings and use this token in VSCode Insiders regardless the token given in the webpage after the login.

    And that's it ! (Finally !)

    EDIT: I tested the same technique for classic VS Code but it didn't work

  25. cpatti97100 commented on Feb 8, 2022

    @cpatti97100

    Hi all and thank you for your hard work :)

    any chance we can have a smooth flow for stable VS Code soon? I am still unable to use my company's GHE :(

  26. alexr00 commented on Feb 8, 2022

    @alexr00
    Member

    Carlo Patti (@cpatti97100) a new version of VS Code stable was released last week (version 1.64) and I released a new version of GitHub Pull Requests and Issues (version 0.36.0) last week too so you're probably good to go.

  27. wrslatz commented on Feb 8, 2022

    @wrslatz

    Does login for GitHub Enterprise work without also logging into GitHub.com? I can't seem to get this to work with the latest versions. I'm happy to open a separate issue to troubleshoot further.

  28. cpatti97100 commented on Feb 9, 2022

    @cpatti97100

    Hey Alex Ross (@alexr00) thank you for reaching out!

    So at the moment I have Code Version: 1.64.1 (Universal) and GitHub Pull Requests and Issues 0.36.0

    in settings I have

    "github-enterprise.uri": "https://github.*****.com",
    

    when I start the app and go the extension page, I see this

    image

    then I do the sign in flow into my private regular github account

    image

    and I end up in this state

    image

    then I click on sign in with github enterprise and it asks me for a token, but no web page with it ever opened

    image

    where should I get it?

    Thank you!

  29. wrslatz commented on Feb 9, 2022

    @wrslatz

    I was able to generate an access token in the GitHub Enterprise instance (under Developer Settings for your user).

    The login to GHES seems to work in my case (from the GitHub Authentication logs), but the extension still can't recognize or pull the projects for my workspaces (I see logs saying the repo isn't recognized and can't find the remotes).

  30. cpatti97100 commented on Feb 10, 2022

    @cpatti97100

    I was able to generate an access token in the GitHub Enterprise instance (under Developer Settings for your user).

    The login to GHES seems to work in my case (from the GitHub Authentication logs), but the extension still can't recognize or pull the projects for my workspaces (I see logs saying the repo isn't recognized and can't find the remotes).

    success! thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GitHubEnterprisefeature-requestverification-neededverified

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions