Forum Discussion

gjtest's avatar
gjtest
New Contributor
3 years ago

GitHub sync on Domain projects does not work

Hello,

 

I am working with several "Domain" projects on SwaggerHub. Those are different from "API" projects in that they don't have the "Integrations" button available

Here's an example of a "Domain" project:

This project does have another button called "GitHub Push Sync settings", here:

However, when clicking on Save, even after filling in all the information, nothing happens, and the following error is thrown in the console:

 

Has anyone succeeded in adding GitHub Push integration into a Domain project, and how did you do it?

 

Is it even possible?

 

Thanks a lot in advance!

 

  • Hi gjtest,

     

    Github Push is an older, deprecated functionality. (Here is the documentation) . It's currently not going anywhere but it might not work for everyone. It also lacks many of the options GitHub Sync has.

     

    At this point there is no support for integrations with domains (likely because the domains are a swaggerhub feature more than an OpenAPI one) - but if you are handy you could use our registry API to make such a sync yourself. If you'd like to add this as a feature request, please contact your account manager at SmartBear.

  • HenrikHL's avatar
    HenrikHL
    Frequent Contributor

    I have pointed this out before also - I think it is quite a "down-grade" to remove the functionality to sync with GitHub from Domains without offering an alternative...

    Every time I have made a change to a Domain now - I need to copy the entire content (CTRL + A, CTRL + C) - then go to GitHib, find the repository and make a PR 😞

  • HenrikHL's avatar
    HenrikHL
    Frequent Contributor

    The SmartBear team has previously encouraged people to use Domains - which I agree is a good idea. We heavily rely on reuse of Objects, definitions, headers, etc between APIs

  • Hi gjtest,

     

    Github Push is an older, deprecated functionality. (Here is the documentation) . It's currently not going anywhere but it might not work for everyone. It also lacks many of the options GitHub Sync has.

     

    At this point there is no support for integrations with domains (likely because the domains are a swaggerhub feature more than an OpenAPI one) - but if you are handy you could use our registry API to make such a sync yourself. If you'd like to add this as a feature request, please contact your account manager at SmartBear.

  • gjtest's avatar
    gjtest
    New Contributor

    Thanks for the quick response! I guess switching to a regular "API" project is the easiest solution