We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73983e9 commit ba27a7dCopy full SHA for ba27a7d
1 file changed
src/teamwork.sh
@@ -16,7 +16,7 @@ teamwork::add_comment() {
16
response=$(curl -X "POST" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/comments.json" \
17
-u "$TEAMWORK_API_TOKEN"':' \
18
-H 'Content-Type: application/json; charset=utf-8' \
19
- -d "{ \"comment\": { \"body\": \"$body\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )
+ -d "{ \"comment\": { \"body\": \"${body//\"/}\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )
20
21
echo "$response"
22
}
0 commit comments