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

fix codebuild-ci code to allow sourceVersion not to has prefix "pr/" #51

Merged
merged 1 commit into from Nov 5, 2019

Conversation

fukubaka0825
Copy link

WHAT

fix codebuild-ci code to allow sourceVersion not to has prefix "pr/"

WHY

According to https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html, CODEBUILD_SOURCE_VERSION doesn't has prefix "pr/" when trigger is not pull request.

And If we use codebuild as CI and CODEBUILD_SOURCE_VERSION doesn't contain "pr/" , we encounter with error "strconv.Atoi: parsing "xxxxxxxxxxx": invalid syntax " in tfnotify.

So tfnotify module should check whether sourceVersion has prefix "pr/" or not and if it doesn't ,return ci and nil before func.strconv.Atoi.

Copy link
Contributor

@babarot babarot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thank you for your contribution!

@babarot babarot merged commit abf7dbd into mercari:master Nov 5, 2019
@fukubaka0825 fukubaka0825 deleted the fix/ci_codebuild branch February 14, 2020 06:51
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

Successfully merging this pull request may close these issues.

None yet

2 participants