File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -527,27 +527,28 @@ def main(*argv, **kwargs):
527
527
if codecov .build :
528
528
query ['build' ] = codecov .build
529
529
530
+ if codecov .pr :
531
+ query ['pr' ] = codecov .pr
532
+
530
533
if codecov .commit :
531
534
query ['commit' ] = codecov .commit
532
535
533
- else :
536
+ elif query [ 'pr' ] and query [ 'pr' ] != 'false' :
534
537
# Merge Commits
535
538
# -------------
536
539
res = try_to_run ('git show --no-patch --format="%P"' )
537
540
if res :
538
541
heads = res .split (' ' )
539
542
if len (heads ) > 1 :
540
543
query ['commit' ] = heads [0 ]
544
+ write (' Fixing merge commit SHA' )
541
545
542
546
if codecov .slug :
543
547
query ['slug' ] = codecov .slug
544
548
545
549
if codecov .branch :
546
550
query ['branch' ] = codecov .branch
547
551
548
- if codecov .pr :
549
- query ['pr' ] = codecov .pr
550
-
551
552
if codecov .tag :
552
553
query ['tag' ] = codecov .tag
553
554
You can’t perform that action at this time.
0 commit comments