We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c5dda3 commit 916933aCopy full SHA for 916933a
1 file changed
src/teamwork.sh
@@ -14,7 +14,7 @@ teamwork::add_comment() {
14
local -r body=$1
15
16
response=$(curl -X "POST" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/comments.json" \
17
- -H 'Authorization: Bearer '$TEAMWORK_API_TOKEN \
+ -u $TEAMWORK_API_TOKEN':' \
18
-H 'Content-Type: application/json; charset=utf-8' \
19
-d "{ \"comment\": { \"body\": \"$body\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )
20
0 commit comments