R/draft/update-issue-milestone.R

#' Title
#'
#' @param ref
#' @param issue_num
#' @param milestone_num
#'
#' @return
#' @export
#'
#' @examples

# update_issue_milestone <- function(ref, issue_num, milestone_num) {
#
#   req <-
#     httr::PATCH(
#       paste0(ref$base,"/issues/", issue_num),
#       body = list(milestone = milestone_num),
#       config = httr::authenticate(Sys.getenv(ref$id), Sys.getenv(ref$pw)),
#       encode = "json")
#
#   return(httr::status_code(req))
#
# }

Try the projmgr package in your browser

Any scripts or data that you put into this service are public.

projmgr documentation built on Aug. 5, 2019, 5:15 p.m.