Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CODEBUILD_PULL_REQUEST always equals false #8

Open
iansu opened this issue Jun 18, 2019 · 4 comments
Open

CODEBUILD_PULL_REQUEST always equals false #8

iansu opened this issue Jun 18, 2019 · 4 comments

Comments

@iansu
Copy link

iansu commented Jun 18, 2019

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

@kingdonb
Copy link

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.

@thii
Copy link
Owner

thii commented Aug 22, 2019

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

@kingdonb
Copy link

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

@tahacanatak
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants