Update generate-jsbindings.sh [ci skip], send pull request to the branch which is being built.

This commit is contained in:
James Chen 2013-05-24 16:53:42 +08:00
parent bdc70fb312
commit 3bb1fe0cc7
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ git add --verbose -u .
git commit --verbose -m "$COMMITTAG : autogenerated bindings"
# 4. In JSBindings repo, Push the commit with generated bindings to "master" of the auto generated bindings repository
git push -fq upstream "$GENERATED_BRANCH":master 2> /dev/null
git push -fq upstream "$GENERATED_BRANCH":${TRAVIS_BRANCH} 2> /dev/null
popd
@ -153,6 +153,6 @@ git push -fq upstream "$COCOS_BRANCH" 2> /dev/null
# 7.
curl --user "${GH_USER}:${GH_PASSWORD}" --request POST --data "{ \"title\": \"$COMMITTAG : updating submodule reference to latest autogenerated bindings\", \"body\": \"\", \"head\": \"${GH_USER}:${COCOS_BRANCH}\", \"base\": \"master\"}" https://api.github.com/repos/cocos2d/cocos2d-x/pulls 2> /dev/null > /dev/null
curl --user "${GH_USER}:${GH_PASSWORD}" --request POST --data "{ \"title\": \"$COMMITTAG : updating submodule reference to latest autogenerated bindings\", \"body\": \"\", \"head\": \"${GH_USER}:${COCOS_BRANCH}\", \"base\": \"${TRAVIS_BRANCH}\"}" https://api.github.com/repos/cocos2d/cocos2d-x/pulls 2> /dev/null > /dev/null
popd