Ended up building a series of git hooks to achieve this. thanks for the pointer.
Git workflow suggestion
-
13-04-2022 - |
Frage
I have a private repo on github and have about 7 developers working actively on it. My repo is branched as follows
- devel
- developerA-branch
- developerB-branch and so on
What is happening now is each developer checks into his local branch, pushes to his remote and to devel.
What I want to achieve is
- Create a sandbox branch
- Once a developer pushes to his remote branch automatically pull it to sandbox and run tests.
- If tests are good the push to devel
- if tests are bad the revert the last set of changes and notify developers
This way only working and tested code ends up in devel. I understand that I may get into a scenario that if 2 developers commit to branch A and B and I pull both to sandbox and if tests fail I wouldn't know which one fails.
Is this possible?
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow