This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Commit 1c7b22c
authored
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)
```1 parent 10a110d commit 1c7b22c
2 files changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
642 | 663 | | |
643 | 664 | | |
644 | 665 | | |
| |||
0 commit comments