platformsh / platformsh-magento2-configuration

☠ DEPRECATED
9 stars 34 forks source link

Master branch isn't correctly being recognised #21

Open erfanimani opened 6 years ago

erfanimani commented 6 years ago

https://github.com/platformsh/platformsh-magento2-configuration/blob/master/Platformsh.php#L471

It’s checking whether PLATFORM_ENVIRONMENT is equal to master.

However, running echo $PLATFORM_ENVIRONMENT returns master-{some_platform_id}.

Also, according to the docs, PLATFORM_BRANCH should be used instead; https://docs.platform.sh/development/variables.html#platformsh-environment-variables

As far as I can see, isMasterBranch will always return false.