Merge pull request #15309 from ktoso/silence-curl-ghtagging-ktoso
=pro silence github tagging (curl)
This commit is contained in:
commit
bd6cb390ac
1 changed files with 2 additions and 2 deletions
|
|
@ -18,10 +18,10 @@ function ghtag {
|
||||||
add=$4
|
add=$4
|
||||||
remove=$5
|
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
|
for d in $remove
|
||||||
do
|
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
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue