locked
Question about GitHub and VSO integration RRS feed

  • Question

  • Hi all,

         I've been evaluating VSO for our organizational needs.  Currently we use TFS 2012.  Our organization would like to move to GitHub for our source repository.  We would also still like to use all the tooling around VS and TFS like code reviews, associating changesets ( pull requests ) with work items, etc.  I understand that VSO can provide CI functionality for GitHub repositories.  Can VSO integrate with GitHub source repository like it does with the VSO hosted Git instance? Presumably the same Git Api's could be used for both.   That would be the ideal solution for us.  It would allow external collaborators to contribute to the code base in a familiar OSS model and it would allow our organization to continue to support enterprise workflows with TFS ( Sprint planning, task tracking and assignment, build, deploy, test, CI, BVT's, etc.).

    Thanks,

    John Sheppard

    Institute for Disease Modeling

    Thursday, September 10, 2015 11:46 AM

All replies

  • Hi John!

    PART A

    You can integrate Github with your CI/CD builds.

    In Visual Studio Online, navigate to one of your projects and then:

    1- Click on the settings icon on the top right corner of your screen

    2- Go to services tab

    3- Create a new service endpoint for Git hub

    4- Create an access token in github: https://help.github.com/articles/creating-an-access-token-for-command-line-use as a personal access token and assign the right permissions for it

    5- Back in VSO, add the token created and create a connection name

    Once you have this set up, you can create your new build definitions in VSO using your Github repo.

    PART B

    In terms of using a Repo by default in your new team project, you can only use Git and TFVC by default, but there are some ways of cloning the GitHub repo into your local GIT, that could be a workaround for importing your Github repos.

    You have a good waltkthrough here: http://blog.nwcadence.com/migrate-repository-github-visual-studio-online/

    PART C

    Have you try Zappier? https://zapier.com/zapbook/github/visual-studio-online/

    I hope it helps!


    Eduardo Ortega Bermejo MVP- "Device Application Development", MCT, MCSE, MCAD, MCTS-WM, MCDBA Blog: http://eoblog.net

    Thursday, September 10, 2015 1:16 PM