R/legacy_headers.R

Defines functions unassign_issue to_issue_id repository reopen_issue push_file proj_req project_connection new_issue list_projects list_files list_branches gitlab_connection get_project_id get_issues get_issue_comments get_issue get_file get_diff get_commits get_commit_comments get_comments file_exists edit_issue_comment edit_issue edit_commit_comment delete_branch create_merge_request create_branch comment_issue comment_commit close_issue assign_issue archive

Documented in archive assign_issue close_issue comment_commit comment_issue create_branch create_merge_request delete_branch edit_commit_comment edit_issue edit_issue_comment file_exists get_comments get_commit_comments get_commits get_diff get_file get_issue get_issue_comments get_issues get_project_id gitlab_connection list_branches list_files list_projects new_issue project_connection proj_req push_file reopen_issue repository to_issue_id unassign_issue

#' Deprecated functions
#'
#' Many functions were renamed with version 0.7 to the \code{gl_} naming scheme.
#' Note that the old function names are deprecated and might be removed without
#' further notive.
#' 
#' @param ... Parameters to the new function
#' @name gitlabr-deprecated
#' @section Details:
#' \tabular{rl}{
#'    \code{archive} \tab is now called \code{gl_archive} \cr
#'    \code{assign_issue} \tab is now called \code{gl_assign_issue} \cr
#'    \code{close_issue} \tab is now called \code{gl_close_issue} \cr
#'    \code{comment_commit} \tab is now called \code{gl_comment_commit} \cr
#'    \code{comment_issue} \tab is now called \code{gl_comment_issue} \cr
#'    \code{create_branch} \tab is now called \code{gl_create_branch} \cr
#'    \code{create_merge_request} \tab is now called \code{gl_create_merge_request} \cr
#'    \code{delete_branch} \tab is now called \code{gl_delete_branch} \cr
#'    \code{edit_commit_comment} \tab is now called \code{gl_edit_commit_comment} \cr
#'    \code{edit_issue} \tab is now called \code{gl_edit_issue} \cr
#'    \code{edit_issue_comment} \tab is now called \code{gl_edit_issue_comment} \cr
#'    \code{file_exists} \tab is now called \code{gl_file_exists} \cr
#'    \code{get_comments} \tab is now called \code{gl_get_comments} \cr
#'    \code{get_commit_comments} \tab is now called \code{gl_get_commit_comments} \cr
#'    \code{get_commits} \tab is now called \code{gl_get_commits} \cr
#'    \code{get_diff} \tab is now called \code{gl_get_diff} \cr
#'    \code{get_file} \tab is now called \code{gl_get_file} \cr
#'    \code{get_issue} \tab is now called \code{gl_get_issue} \cr
#'    \code{get_issue_comments} \tab is now called \code{gl_get_issue_comments} \cr
#'    \code{get_issues} \tab is now called \code{gl_list_issues} \cr
#'    \code{get_project_id} \tab is now called \code{gl_get_project_id} \cr
#'    \code{gitlab_connection} \tab is now called \code{gl_connection} \cr
#'    \code{list_branches} \tab is now called \code{gl_list_branches} \cr
#'    \code{list_files} \tab is now called \code{gl_list_files} \cr
#'    \code{list_projects} \tab is now called \code{gl_list_projects} \cr
#'    \code{new_issue} \tab is now called \code{gl_new_issue} \cr
#'    \code{project_connection} \tab is now called \code{gl_project_connection} \cr
#'    \code{proj_req} \tab is now called \code{gl_proj_req} \cr
#'    \code{push_file} \tab is now called \code{gl_push_file} \cr
#'    \code{reopen_issue} \tab is now called \code{gl_reopen_issue} \cr
#'    \code{repository} \tab is now called \code{gl_repository} \cr
#'    \code{to_issue_id} \tab is now called \code{gl_to_issue_id} \cr
#'    \code{unassign_issue} \tab is now called \code{gl_unassign_issue} \cr
#' }
NULL

#' renamings from gitlabr version 0.6.4 to 0.7
#'
#' List of of old and new function name. Used internally by
#' \code{\link{update_gitlabr_code}}
#' 
#'
#' @docType data
#' @name gitlabr_0_7_renaming
#' @format A data frame with 33 rows and 2 variables
NULL

#' @export
#' @rdname gitlabr-deprecated
archive <- function(...) {
  .Deprecated('gl_archive', package = 'gitlabr', old = 'archive')
  gl_archive(...)
}

#' @export
#' @rdname gitlabr-deprecated
assign_issue <- function(...) {
  .Deprecated('gl_assign_issue', package = 'gitlabr', old = 'assign_issue')
  gl_assign_issue(...)
}

#' @export
#' @rdname gitlabr-deprecated
close_issue <- function(...) {
  .Deprecated('gl_close_issue', package = 'gitlabr', old = 'close_issue')
  gl_close_issue(...)
}

#' @export
#' @rdname gitlabr-deprecated
comment_commit <- function(...) {
  .Deprecated('gl_comment_commit', package = 'gitlabr', old = 'comment_commit')
  gl_comment_commit(...)
}

#' @export
#' @rdname gitlabr-deprecated
comment_issue <- function(...) {
  .Deprecated('gl_comment_issue', package = 'gitlabr', old = 'comment_issue')
  gl_comment_issue(...)
}

#' @export
#' @rdname gitlabr-deprecated
create_branch <- function(...) {
  .Deprecated('gl_create_branch', package = 'gitlabr', old = 'create_branch')
  gl_create_branch(...)
}

#' @export
#' @rdname gitlabr-deprecated
create_merge_request <- function(...) {
  .Deprecated('gl_create_merge_request', package = 'gitlabr', old = 'create_merge_request')
  gl_create_merge_request(...)
}

#' @export
#' @rdname gitlabr-deprecated
delete_branch <- function(...) {
  .Deprecated('gl_delete_branch', package = 'gitlabr', old = 'delete_branch')
  gl_delete_branch(...)
}

#' @export
#' @rdname gitlabr-deprecated
edit_commit_comment <- function(...) {
  .Deprecated('gl_edit_commit_comment', package = 'gitlabr', old = 'edit_commit_comment')
  gl_edit_commit_comment(...)
}

#' @export
#' @rdname gitlabr-deprecated
edit_issue <- function(...) {
  .Deprecated('gl_edit_issue', package = 'gitlabr', old = 'edit_issue')
  gl_edit_issue(...)
}

#' @export
#' @rdname gitlabr-deprecated
edit_issue_comment <- function(...) {
  .Deprecated('gl_edit_issue_comment', package = 'gitlabr', old = 'edit_issue_comment')
  gl_edit_issue_comment(...)
}

#' @export
#' @rdname gitlabr-deprecated
file_exists <- function(...) {
  .Deprecated('gl_file_exists', package = 'gitlabr', old = 'file_exists')
  gl_file_exists(...)
}

#' @export
#' @rdname gitlabr-deprecated
get_comments <- function(...) {
  .Deprecated('gl_get_comments', package = 'gitlabr', old = 'get_comments')
  gl_get_comments(...)
}

#' @export
#' @rdname gitlabr-deprecated
get_commit_comments <- function(...) {
  .Deprecated('gl_get_commit_comments', package = 'gitlabr', old = 'get_commit_comments')
  gl_get_commit_comments(...)
}

#' @export
#' @rdname gitlabr-deprecated
get_commits <- function(...) {
  .Deprecated('gl_get_commits', package = 'gitlabr', old = 'get_commits')
  gl_get_commits(...)
}

#' @export
#' @rdname gitlabr-deprecated
get_diff <- function(...) {
  .Deprecated('gl_get_diff', package = 'gitlabr', old = 'get_diff')
  gl_get_diff(...)
}

#' @export
#' @rdname gitlabr-deprecated
get_file <- function(...) {
  .Deprecated('gl_get_file', package = 'gitlabr', old = 'get_file')
  gl_get_file(...)
}

#' @export
#' @rdname gitlabr-deprecated
get_issue <- function(...) {
  .Deprecated('gl_get_issue', package = 'gitlabr', old = 'get_issue')
  gl_get_issue(...)
}

#' @export
#' @rdname gitlabr-deprecated
get_issue_comments <- function(...) {
  .Deprecated('gl_get_issue_comments', package = 'gitlabr', old = 'get_issue_comments')
  gl_get_issue_comments(...)
}

#' @export
#' @rdname gitlabr-deprecated
get_issues <- function(...) {
  .Deprecated('gl_list_issues', package = 'gitlabr', old = 'get_issues')
  gl_list_issues(...)
}

#' @export
#' @rdname gitlabr-deprecated
get_project_id <- function(...) {
  .Deprecated('gl_get_project_id', package = 'gitlabr', old = 'get_project_id')
  gl_get_project_id(...)
}

#' @export
#' @rdname gitlabr-deprecated
gitlab_connection <- function(...) {
  .Deprecated('gl_connection', package = 'gitlabr', old = 'gitlab_connection')
  gl_connection(...)
}

#' @export
#' @rdname gitlabr-deprecated
list_branches <- function(...) {
  .Deprecated('gl_list_branches', package = 'gitlabr', old = 'list_branches')
  gl_list_branches(...)
}

#' @export
#' @rdname gitlabr-deprecated
list_files <- function(...) {
  .Deprecated('gl_list_files', package = 'gitlabr', old = 'list_files')
  gl_list_files(...)
}

#' @export
#' @rdname gitlabr-deprecated
list_projects <- function(...) {
  .Deprecated('gl_list_projects', package = 'gitlabr', old = 'list_projects')
  gl_list_projects(...)
}

#' @export
#' @rdname gitlabr-deprecated
new_issue <- function(...) {
  .Deprecated('gl_new_issue', package = 'gitlabr', old = 'new_issue')
  gl_new_issue(...)
}

#' @export
#' @rdname gitlabr-deprecated
project_connection <- function(...) {
  .Deprecated('gl_project_connection', package = 'gitlabr', old = 'project_connection')
  gl_project_connection(...)
}

#' @export
#' @rdname gitlabr-deprecated
proj_req <- function(...) {
  .Deprecated('gl_proj_req', package = 'gitlabr', old = 'proj_req')
  gl_proj_req(...)
}

#' @export
#' @rdname gitlabr-deprecated
push_file <- function(...) {
  .Deprecated('gl_push_file', package = 'gitlabr', old = 'push_file')
  gl_push_file(...)
}

#' @export
#' @rdname gitlabr-deprecated
reopen_issue <- function(...) {
  .Deprecated('gl_reopen_issue', package = 'gitlabr', old = 'reopen_issue')
  gl_reopen_issue(...)
}

#' @export
#' @rdname gitlabr-deprecated
repository <- function(...) {
  .Deprecated('gl_repository', package = 'gitlabr', old = 'repository')
  gl_repository(...)
}

#' @export
#' @rdname gitlabr-deprecated
to_issue_id <- function(...) {
  .Deprecated('gl_to_issue_id', package = 'gitlabr', old = 'to_issue_id')
  gl_to_issue_id(...)
}

#' @export
#' @rdname gitlabr-deprecated
unassign_issue <- function(...) {
  .Deprecated('gl_unassign_issue', package = 'gitlabr', old = 'unassign_issue')
  gl_unassign_issue(...)
}
statnmap/gitlab2r documentation built on Aug. 8, 2020, 12:07 a.m.