Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dariopai opened this issue Aug 23, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@dariopai
Copy link

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

@dariopai dariopai changed the title be possible the sync forms from GIT but specifying a fixed branch instead of default "main/master" be possible to sync forms from GIT but specifying a fixed branch instead of default "main/master" Aug 23, 2024
@ansibleguy76 ansibleguy76 self-assigned this Aug 23, 2024
@ansibleguy76 ansibleguy76 added the enhancement New feature or request label Aug 23, 2024
@ansibleguy76
Copy link
Owner

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

@ronrem
Copy link

ronrem commented Nov 20, 2024

I’m also interested in this feature. We manage multiple environments, including development, acceptance, and production. For my development AnsibleForms system, I need the develop branch to handle data for both the "forms" and "playbooks" repositories.

Are there any updates on this?

@janhoelscher
Copy link

I would also be happy about this feature. 👍

@ansibleguy76
Copy link
Owner

I'll make this a priority

@ansibleguy76
Copy link
Owner

added in latest beta 5.0.8, you will need to remove and re-add the repo, as the clone is done on creation. Can someone test ? For the very fast ones... build is still running... give it another 5 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants