aws-codebuild-extras icon indicating copy to clipboard operation
aws-codebuild-extras copied to clipboard

CODEBUILD_PULL_REQUEST always equals false

Open iansu opened this issue 6 years ago • 4 comments

This seemed to be working a couple of weeks ago but CODEBUILD_PULL_REQUEST always seems to be false for me now.

iansu avatar Jun 18 '19 15:06 iansu

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.

kingdonb avatar Aug 21 '19 03:08 kingdonb

Please try setting git clone depth to something greater than 1.

thii avatar Aug 22 '19 01:08 thii

Thank you! I will give that a try, one of my coworkers suggested the same thing in a meeting yesterday.

kingdonb avatar Aug 22 '19 11:08 kingdonb

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?

tahacanatak avatar Apr 14 '21 15:04 tahacanatak