insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

Git Sync does not behave well in a monorepo

Open JameelKhan9 opened this issue 3 years ago • 3 comments

Expected Behavior

After completing Git Sync could create collaborate on multiple API documents in the same repository across multiple product folders.

Actual Behavior

After completing Git Sync only one ".insomnia" folder is created at the root folder level.

Reproduction Steps

  1. Configure Git Sync
  2. Commit an API Document
  3. Check branch of repo for a single ".insomnia" root folder

Is there an existing issue for this?

Additional Information

Along with the configuration of a git repository to sync to, a config should be provided for the user to provide a relative file path to the .insomnia folder they want to have synced.

Insomnia Version

2022.3.0

What operating system are you using?

macOS

Operating System Version

macOS Monterey 12.3.1

Installation method

download dmg

Last Known Working Insomnia version

No response

JameelKhan9 avatar May 18 '22 06:05 JameelKhan9

Hi @JameelKhan9, thank you for reporting this!

We don't officially support keeping track of more than one Design Document project in a single repository in the fashion you mentioned, e.g. defining more than one insomnia spec project (and possibly a custom path) in a single repository.

This is however a possibly valid feature request/improvement linked with some others we've been discussing internally, like allowing folks to split an OpenAPI spec file.

We'll update you here if there's any changes or fixes in the meantime.

filfreire avatar May 18 '22 13:05 filfreire

Postman has shipped this in September 2023, any plans for Insomnia to match?

sourceful-wing avatar Nov 30 '23 13:11 sourceful-wing

@sourceful-karlson why the thumbs down? This would be a really cool feature. a mono repo could host multiple API's with their distinct config and settings.

sanderkooger avatar Jul 22 '24 11:07 sanderkooger

This is possible by using Git Projects Thanks for the feedback!

gatzjames avatar Jun 06 '25 11:06 gatzjames