create_pull_request: Creates a pull request

Description Usage Arguments Value

View source: R/pull_requests.R

Description

Creates a pull request

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
create_pull_request(
  org,
  repo,
  base,
  head,
  title,
  body = "",
  reviewers = NULL,
  assignees = NULL,
  .api_url = api_url()
)

Arguments

org

Name of organization to query

repo

Name of repository to query

base

Name of base branch that changes will be pulled into

head

Name of head branch where changes will be pulled from

title

Title of pull request

body

Body of pull request. Defaults to ""

reviewers

List of usernames to request reviews from (ie: ‘reviewers = c(’devinp', 'harshb')')

assignees

List of usernames to assign to the pull request.

.api_url

Optional API url to query. Defaults to the value set by ‘api_url()'. Usually it’s "https://api.github.com/graphql"

Value

A list containing the title, creation date, author, reviewers, and assignees of the pull request


metrumresearchgroup/ghpm documentation built on Jan. 24, 2021, 8:28 p.m.