cancel
Showing results for 
Search instead for 
Did you mean: 

maintain multiple versions of the file in GitHub from SwaggerHub integration

Highlighted
Occasional Contributor

maintain multiple versions of the file in GitHub from SwaggerHub integration

Hello there,

 

I am trying to maintain multiple versions of the file in GitHub from SwaggerHub integration, in order to do this I have the Github sync integration hooked up with my API and whenever I am making changes and executing my integration, SwaggerHub pushes the YAML file in Github. However, SwaggerHub codegen is deleting all the files at the Git destination and rebuilding all of it, even the ignore files.

 

Could anyone please help in identifying a solution to this problem? 

 

Thanks

Mayank

1 REPLY 1
Highlighted
Moderator

Re: maintain multiple versions of the file in GitHub from SwaggerHub integration

Hi @mayanknawal 

 

You can use API versions and have different files for them in GitHub: https://app.swaggerhub.com/help/apis/versioning

Please note that integrations are not automatically copied to the new version, you will need to add them again. For the GitHub integration, you will need to change the settings, so that new files are created (for example, different branches or folders).

The GitHub integration: https://app.swaggerhub.com/help/integrations/github-sync

 

As for the "ignored files", can you please describe the issue in more detail? What settings do you have, what files did you have and what files were changed?


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements