Compare commits
1 commit
ea3361a191
...
dcb8126e67
Author | SHA1 | Date | |
---|---|---|---|
dcb8126e67 |
1 changed files with 4 additions and 1 deletions
|
@ -38,10 +38,13 @@ if [ "$CI" = "true" ]; then
|
||||||
)
|
)
|
||||||
echo 'Posting comment:'
|
echo 'Posting comment:'
|
||||||
echo "$comment"
|
echo "$comment"
|
||||||
|
echo 'Request data:'
|
||||||
|
data=$(echo '{}' | jq --arg comment "$comment" '.body=$comment')
|
||||||
|
echo "$data"
|
||||||
curl -o - -v -X 'POST' \
|
curl -o - -v -X 'POST' \
|
||||||
"$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/issues/$pr_number/comments?token=$GITHUB_TOKEN" \
|
"$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/issues/$pr_number/comments?token=$GITHUB_TOKEN" \
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-d "$(echo '{}' | jq --arg comment "$comment" '.body=$comment')"
|
-d "$data"
|
||||||
else
|
else
|
||||||
package_size_table
|
package_size_table
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue