Issue Fix

This commit is contained in:
raghaves 2020-06-13 12:59:25 +05:30
parent 7f8240f656
commit 0439767fe5

View file

@ -61,8 +61,9 @@ jobs:
$tbl_md = $coverage_result[($start_index+1)..($end_index-1)] -join "\n" $tbl_md = $coverage_result[($start_index+1)..($end_index-1)] -join "\n"
$summary = $coverage_result[($end_index + 1)..$count] -join "\n" $summary = $coverage_result[($end_index + 1)..$count] -join "\n"
$comment = $tbl_md + "\n" + $summary $comment = $tbl_md + "\n" + $summary
echo "{ `"body`": `"${comment}`" }" echo ">>: { `"body`": `"${comment}`" }"
$url = "https://api.github.com/repos/${env:GITHUB_REPOSITORY}/issues/${env:PR_NUMBER}/comments" $url = "https://api.github.com/repos/${env:GITHUB_REPOSITORY}/issues/${env:PR_NUMBER}/comments"
echo "url>> ${url}"
$headers = @{ $headers = @{
"Authorization" = "token ${env:GITHUB_TOKEN}" "Authorization" = "token ${env:GITHUB_TOKEN}"
} }