2017-07-05 8 views

答えて

0
# Get original hash 
curl "https://api.github.com/repos/:original/:repo/git/refs/heads/master" 

# Follow upstrem change 
curl -X POST \ 
    -H "Authorization: token <TOKEN>" \ 
    --data '{"base":"<fork/BRANCH>","head":"<original/HASH>"}' \ 
    "https://api.github.com/repos/:fork/:repo/test_project/merges"