Thanks for the quick response!
I dove into the covr package, and arrived at the POST statement used to upload the report. I’m now able to manually post the same report over http, with the same commit ID, but different branches, and it seems that the change in branch is ignored: (Note I’m using a different repo than before)
httr::content(httr::POST(url = "https://codecov.io/upload/v2",
query = codecov_query,
body = coverage_json,
encode = "json"))
# Returns a reference to https://codecov.io/github/OHDSI/OhdsiSharing/commit/d2c95bd93641dd42577c07ea5777502ffca345a1
codecov_query$branch <- "master"
httr::content(httr::POST(url = "https://codecov.io/upload/v2",
query = codecov_query,
body = coverage_json,
encode = "json"))
# Returns the same URL, and the content hasn't been updated to reflect the change in branch.
Contents of codecov_query object created by covr:
$branch
[1] "develop"
$commit
[1] "d2c95bd93641dd42577c07ea5777502ffca345a1"
$token
[1] "--removed--"
Contents of coverage_json:
{"files":[{"name":"R/Sftp.R","coverage":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0,null,0,0,0,0,0,null,null,null,null,null,null,null,null,null,0,0,0,0,null,null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,null,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0,0,null,0,0,0,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,0,null,null,null,null,null,null,null,null,null,null,0,0,0,null,null,null,null,null,null,null,null,null,null,0,0,0,null,null,null,null,null,null,null,null,null,null,0,0,0,null,null,null,null,null,null,null,null,null,null,0,0,0,0,null,null,null,null,null,null,null,null,null,null,null,null,0,0,0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,null,0,0,0,0,0,null,0,0,null]},{"name":"R/Encryption.R","coverage":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,null]},{"name":"R/HelperFunctions.R","coverage":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,null,null,null,null,null,0,0,0,0,0,0,null,0,null,null,0,null,null,null]},{"name":"R/OhdsiSharing.R","coverage":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,null]}],"uploader":"R"}