Merge pull request #15309 from ktoso/silence-curl-ghtagging-ktoso

=pro silence github tagging (curl)
This commit is contained in:
Konrad Malawski 2014-05-30 13:11:46 +02:00
commit bd6cb390ac

View file

@ -18,10 +18,10 @@ function ghtag {
add=$4
remove=$5
curl -s -H "Authorization: token $PR_VALIDATOR_GH_TOKEN" https://api.github.com/repos/$owner/$repo/issues/$issue/labels -X POST -d $add
curl -s -H "Authorization: token $PR_VALIDATOR_GH_TOKEN" https://api.github.com/repos/$owner/$repo/issues/$issue/labels -X POST -d $add > /dev/null
for d in $remove
do
curl -s -H "Authorization: token $PR_VALIDATOR_GH_TOKEN" https://api.github.com/repos/$owner/$repo/issues/$issue/labels/$d -X DELETE
curl -s -H "Authorization: token $PR_VALIDATOR_GH_TOKEN" https://api.github.com/repos/$owner/$repo/issues/$issue/labels/$d -X DELETE > /dev/null
done
}