This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CODEBUILD_SOURCE_VERSION matching (#102)
According to AWS CodeBuild User Guide, CODEBUILD_SOURCE_VERSION depends on the source repository. When build is triggered by a webhook pull request event, the value is pull_request number(pr/xxx) otherwise the value is other than pull request number(commit id, branch name or tag name). In the latter case, an error raises like below. ``` /root/caches/vendor/bundle/ruby/2.5.0/gems/codecov-0.2.11/lib/codecov.rb:171 :in `build_params': undefined method `[]' for nil:NilClass (NoMethodError) ```
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters