quote url correctly
This commit is contained in:
parent
0621149de7
commit
993c3e5aeb
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ pipeline:
|
||||||
image: nixery.dev/shell/jq/curl
|
image: nixery.dev/shell/jq/curl
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
echo '{}' | jq '.body = $body' --arg body "$(cat review)" | jq '.commit_id = $commit_id' --arg commit_id "$CI_COMMIT_SHA" | curl -XPOST 'https://git.chir.rs/api/v1/repos/$CI_REPO_OWNER/$CI_REPO_OWNER/pulls/$CI_COMMIT_PULL_REQUEST/reviews' -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: token $GITEA_TOKEN" --data-binary @-
|
echo '{}' | jq '.body = $body' --arg body "$(cat review)" | jq '.commit_id = $commit_id' --arg commit_id "$CI_COMMIT_SHA" | curl -XPOST "https://git.chir.rs/api/v1/repos/$CI_REPO_OWNER/$CI_REPO_OWNER/pulls/$CI_COMMIT_PULL_REQUEST/reviews" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: token $GITEA_TOKEN" --data-binary @-
|
||||||
secrets:
|
secrets:
|
||||||
- gitea_token
|
- gitea_token
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in a new issue