borkweb / products-test-automation

Other
3 stars 0 forks source link

feat(tric) allow specifying target branch for init, fixes #45 #46

Closed lucatume closed 4 years ago

lucatume commented 4 years ago

fixes #45

This PR adds support for a branch to the init command.

While running tric init event-tickets is still possible, it will use, as it did before, the default repository branch.
This PR allows running the init command, and with it the composer and npm tasks, directly during init phase with an API like this:

tric init event-tickets release/G20.04

The command will try to change the branch locally first, and then will try to pull from each plugin repository remote.

The command is recursing on sub-modules too to make sure the composer and npm commands will build on the correct version of common if the plugins contains it.

Screencap