@@ -7,7 +7,6 @@ a <- commandArgs(TRUE)
77library(" httr" )
88base <- ' https://api.github.com/repos/ropensci/plotly/'
99pr <- sprintf(paste0(base , ' pulls/%s' ), a [1 ])
10- comments <- sprintf(paste0(base , ' issues/%s/comments' ), a [1 ])
1110header <- add_headers(`User-Agent` = " plotly" ,
1211 `Accept` = ' application/vnd.github.v3+json' ,
1312 `Authorization` = paste0(" token " , a [3 ]))
@@ -50,14 +49,16 @@ commit_msg <- paste0('"Pushed from https://travis-ci.org/ropensci/plotly/builds/
5049system(paste(' git commit -m' , commit_msg ))
5150# This post explains how this works -- http://rmflight.github.io/posts/2014/11/travis_ci_gh_pages.html
5251repo <- paste0(" https://" , a [3 ], " @github.com/ropensci/plotly-test-table.git" )
53- system(paste(" git pull" , repo , " gh-pages" ))
54- system(paste(" git push" , repo , " gh-pages" ))
52+ system(paste(" git pull -q " , repo , " gh-pages" ))
53+ system(paste(" git push -q " , repo , " gh-pages" ))
5554
5655# post comment if a link to this SHA doesn't exist
5756# (needed since Travis randomly re-builds stuff)
5857tbl_link <- sprintf(" http://ropensci.github.io/plotly-test-table/tables/%s/index.html" ,
5958 info $ head $ sha )
60- res <- GET(comments , header )
59+ commentz <- sprintf(paste0(base , ' issues/%s/comments' ), a [1 ])
60+ message(commentz )
61+ res <- GET(commentz , header )
6162warn_for_status(res )
6263info <- content(res )
6364old_body <- unlist(lapply(info , " [" , " body" ))
0 commit comments