Inspired by this amazing post on a branching Git model and this one that actually sketches a version of the script, I started creating my own Git version of bumping which led to a small package called bumpr .
However, I do not like the current method of processing ( GitHub ) HTTPS credentials. I use the solution indicated in this post and it works fine, but I don't like the fact that I need to store my credentials in plain text in this _netrc.
So I thought:
if you can also confuse console input when querying through readline(), scan()or the like, in much the same way as when using the Git shell. See Code /R/bump.ron line 454:
input <- readline(paste0("Password for 'https://",
git_user_email, "@github.com': "))
idx <- ifelse(grepl("\\D", input), input, NA)
if (is.na(idx)){
message("Empty password")
message("Exiting")
return(character())
}
git_https_password <- input
how RStudio understands that when you click on the remote Git repository, the message "Insert credentials" appears and how they trick the password into.
- If the file
_netrcis something that is closely related to the GitHub API or if it works for HTTPS requests in general
source
share