Skip to content

Commit 01c7592

Browse files
authored
Merge pull request #58 from Teamwork/stop-using-wrapper
Stop using projects/api/v1
2 parents 31dfa62 + 23531a0 commit 01c7592

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/teamwork.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ teamwork::add_comment() {
9191
return
9292
fi
9393

94-
response=$(curl -X "POST" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/comments.json" \
94+
response=$(curl -X "POST" "$TEAMWORK_URI/tasks/$TEAMWORK_TASK_ID/comments.json" \
9595
-u "$TEAMWORK_API_TOKEN"':' \
9696
-H 'Content-Type: application/json; charset=utf-8' \
9797
-d "{ \"comment\": { \"body\": \"${body//\"/}\", \"notify\": true, \"content-type\": \"text\", \"isprivate\": false } }" )
@@ -108,7 +108,7 @@ teamwork::add_tag() {
108108
fi
109109

110110
if [ "$AUTOMATIC_TAGGING" == true ]; then
111-
response=$(curl -X "PUT" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/tags.json" \
111+
response=$(curl -X "PUT" "$TEAMWORK_URI/tasks/$TEAMWORK_TASK_ID/tags.json" \
112112
-u "$TEAMWORK_API_TOKEN"':' \
113113
-H 'Content-Type: application/json; charset=utf-8' \
114114
-d "{ \"tags\": { \"content\": \"${tag_name//\"/}\" } }" )
@@ -126,7 +126,7 @@ teamwork::remove_tag() {
126126
fi
127127

128128
if [ "$AUTOMATIC_TAGGING" == true ]; then
129-
response=$(curl -X "PUT" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/tags.json" \
129+
response=$(curl -X "PUT" "$TEAMWORK_URI/tasks/$TEAMWORK_TASK_ID/tags.json" \
130130
-u "$TEAMWORK_API_TOKEN"':' \
131131
-H 'Content-Type: application/json; charset=utf-8' \
132132
-d "{ \"tags\": { \"content\": \"${tag_name//\"/}\" },\"removeProvidedTags\":\"true\" }" )

0 commit comments

Comments
 (0)