@@ -9,7 +9,7 @@ base <- 'https://api.github.com/repos/ropensci/plotly/'
9
9
pr <- sprintf(paste0(base , ' pulls/%s' ), a [1 ])
10
10
header <- add_headers(`User-Agent` = " plotly" ,
11
11
`Accept` = ' application/vnd.github.v3+json' ,
12
- `Authorization` = paste0(" token " , a [3 ]))
12
+ `Authorization` = paste0(" token " , a [4 ]))
13
13
# Must be successful since we grab the branch name for this pull request
14
14
# and SHA1 info from the request content
15
15
res <- GET(url = pr , header )
@@ -33,7 +33,7 @@ setwd("../plotly-test-table")
33
33
cat(" user,SHA1,label" , file = " code_commits.csv" )
34
34
row1 <- paste0(" \n ropensci," , info $ base $ sha , " ,master" )
35
35
cat(row1 , file = " code_commits.csv" , append = TRUE )
36
- row2 <- paste0(" \n ropensci," , info $ head $ sha , " ," , branch )
36
+ row2 <- paste0(" \n ropensci," , a [ 3 ] , " ," , branch )
37
37
cat(row2 , file = " code_commits.csv" , append = TRUE )
38
38
39
39
# copy over file (created during Rscript)
@@ -48,14 +48,13 @@ system("git add data/*/*.log")
48
48
commit_msg <- paste0(' "Pushed from https://travis-ci.org/ropensci/plotly/builds/"' , a [2 ])
49
49
system(paste(' git commit -m' , commit_msg ))
50
50
# This post explains how this works -- http://rmflight.github.io/posts/2014/11/travis_ci_gh_pages.html
51
- repo <- paste0 (" https://" , a [ 3 ], " @github.com/ropensci/plotly-test-table.git" )
51
+ repo <- sprintf (" https://%s @github.com/ropensci/plotly-test-table.git" , a [ 4 ] )
52
52
system(paste(" git pull -q" , repo , " gh-pages" ))
53
53
system(paste(" git push -q" , repo , " gh-pages" ))
54
54
55
55
# post comment if a link to this SHA doesn't exist
56
56
# (needed since Travis randomly re-builds stuff)
57
- tbl_link <- sprintf(" http://ropensci.github.io/plotly-test-table/tables/%s/index.html" ,
58
- info $ head $ sha )
57
+ tbl_link <- sprintf(" http://ropensci.github.io/plotly-test-table/tables/%s/index.html" , a [3 ])
59
58
commentz <- sprintf(paste0(base , ' issues/%s/comments' ), a [1 ])
60
59
res <- GET(commentz , header )
61
60
warn_for_status(res )
0 commit comments