You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've both moved to using main for our branches instead of master, and actually want to have a specific deployment branch that CI commits to so that devs don't have to do asset compiling themselves (e.g. we ignore our compiled assets, and then CI builds + forcefully commits them to the deployment branch, which is then deployed from).
I would say long-term it would probably make sense to make a global --default-branch config value that gets used in these situations.
The text was updated successfully, but these errors were encountered:
Right now, the build tools plugin assumes that the GitHub (/ GitLab / Bitbucket) branch always matches the Pantheon branch. The Pantheon branch for the dev environment must be "master". We've gotten a lot of requests to change this, but it's hardcoded in too many places to be changed easily, so it will be a while before this can be changed on the platform.
Build tools could, however, be modified to push from the default branch on GitHub (et. al.) to the master branch on Pantheon. This was discussed once; I don't recall what the challenges were.
Currently
build:env:push
is hard-coded to use themaster
branch if it's not a multi-dev call:terminus-build-tools-plugin/src/Commands/BuildToolsBase.php
Line 804 in 2426c24
We've both moved to using
main
for our branches instead ofmaster
, and actually want to have a specificdeployment
branch that CI commits to so that devs don't have to do asset compiling themselves (e.g. we ignore our compiled assets, and then CI builds + forcefully commits them to thedeployment
branch, which is then deployed from).I would say long-term it would probably make sense to make a global
--default-branch
config value that gets used in these situations.The text was updated successfully, but these errors were encountered: