aws-codebuild-extras
aws-codebuild-extras copied to clipboard
CODEBUILD_PULL_REQUEST always equals false
This seemed to be working a couple of weeks ago but CODEBUILD_PULL_REQUEST always seems to be false for me now.
From the discussion at https://stackoverflow.com/questions/47657423/get-github-git-branch-for-aws-codebuild I would guess this is related to #1
I have replaced the CODEBUILD_ prefix with my own internal prefix or eg. GIT_TAG and this script is working for me.
Please try setting git clone depth to something greater than 1.
Thank you! I will give that a try, one of my coworkers suggested the same thing in a meeting yesterday.
Thank you! I will give that a try, one of my coworkers suggested the same thing in a meeting yesterday.
I am having the same problem. git clone depth is greater than 1 but it didn't work. pull request always false. Did you find a solution?