archimatetool / archi-modelrepository-plugin

coArchi - a plug-in to share and collaborate on Archi models.
153 stars 53 forks source link

create new bransh when publishing #116

Closed Ballzer0 closed 4 years ago

Ballzer0 commented 4 years ago

it would be nice if you could create a new branch instead of publishing directly to the master branch.

Phillipus commented 4 years ago

You can already create a new branch. Did you try that?

Ballzer0 commented 4 years ago

sorry, worded that poorly. I would like a Publish as a new branch feature. It would mostly be an ease of life feature, allowing people to work of master and publish as a new branch.

Ballzer0 commented 4 years ago

like, there could be a button under publish changes called publish changes as a new branch

jbsarrodie commented 4 years ago

like, there could be a button under publish changes called publish changes as a new branch

That's not possible as your local copy of the model has to be an exact clone of the remote repository. Ie. commits have to be on the same branch on both side. So you have to first create the branch, then to commit, then to publish.

Ballzer0 commented 4 years ago

Ouch, that's an anoying limitation. I just wanted to commit to a separate branch so that we could do pull requests instead of committing straight to master. Thanks for your time anyways, it's great insights to have 😁

jbsarrodie commented 4 years ago

I just wanted to commit to a separate branch [...}

You can commit to a separate branch ! As Phil said, this is supported by the plugin: simply open the Branches view and create (and switch to) a new branch.

[...] so that we could do pull requests instead of committing straight to master.

As said a lot of time here on GH and on the forum, you can't use pull requests with coArchi! There are a lot of additional things done when merging, including several anti corruption layers. Merging through another git tool or server will lead to a corrupted model.