diff --git a/src/teamwork.sh b/src/teamwork.sh index a581f0d0..bcf8a0ae 100644 --- a/src/teamwork.sh +++ b/src/teamwork.sh @@ -14,7 +14,7 @@ teamwork::add_comment() { local -r body=$1 response=$(curl -X "POST" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/comments.json" \ - -H 'Authorization: Bearer '$TEAMWORK_API_TOKEN \ + -u $TEAMWORK_API_TOKEN':' \ -H 'Content-Type: application/json; charset=utf-8' \ -d "{ \"comment\": { \"body\": \"$body\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )