Skip to content

Commit

Permalink
Fix: Notify users about new task comment (#24)
Browse files Browse the repository at this point in the history
Resolves #23

Co-authored-by: Miguel Ángel Martín <miguelbemartin@gmail.com>
  • Loading branch information
rafaeljusto and miguelbemartin authored Sep 25, 2020
1 parent c583c2a commit 1abfc75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/teamwork.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ teamwork::add_comment() {
response=$(curl -X "POST" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/comments.json" \
-u "$TEAMWORK_API_TOKEN"':' \
-H 'Content-Type: application/json; charset=utf-8' \
-d "{ \"comment\": { \"body\": \"${body//\"/}\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )
-d "{ \"comment\": { \"body\": \"${body//\"/}\", \"notify\": true, \"content-type\": \"text\", \"isprivate\": false } }" )

log::message "$response"
}
Expand Down

0 comments on commit 1abfc75

Please sign in to comment.