ansibleguy76 / ansibleforms

A webapplication to create pretty advanced forms to run ansible playbooks or awx templates.
https://ansibleforms.com/
GNU General Public License v3.0
66 stars 10 forks source link

be possible to sync forms from GIT but specifying a fixed branch instead of default "main/master" #210

Open dariopai opened 3 weeks ago

dariopai commented 3 weeks ago

at file repo.model.js => ... var command = "git pull --verbose"...

Consider adding some extra parameters or new steps during the clone/pull request so to be able to set the source-branch instead default "main/master". For example it could be: ... git clone -b dev https://github.com/user/repo.git ... or ... git clone https://github.com/user/repo.git git fetch git checkout dev git pull origin dev

So with this feature you could use DEV branch for test env, then MAIN/MASTER for prod env

ansibleguy76 commented 3 weeks ago

That sounds feasible. I'll see to add it in a next release.