create_project: Create a GitHub project

Description Usage Arguments Details Value Examples

View source: R/projects.R

Description

This function creates a new project in GitHub. The project will be empty so you will need to add columns and cards separately.

Usage

1
create_project(name, body, repo, org, ...)

Arguments

name

(string) The name of the project.

body

(string) The description of the project.

repo

(string, optional) The repository specified in the format: owner/repo.

org

(string, optional) The name of the organization.

...

Parameters passed to gh_request().

Details

You can create a project associated with either a repository or organization, by supplying them as an input, as long as you have appropriate permissions. If no repository or organization is specified the project is created for the authenticated user.

For more details see the GitHub API documentation:

Value

create_project() returns a list of the project properties.

Project Properties:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 

  # Create a project for a repository
  create_project(
    name = "Repo project",
    body = "This is a repository's project",
    repo = "ChadGoymer/githapi"
  )

  # Create a project for the current user
  create_project(
    name = "User project",
    body = "This is a user's project"
  )

  # Create a project for an organization
  create_project(
    name = "Organization project",
    body = "This is an organization's project",
    org  = "HairyCoos"
  )


## End(Not run)

ChadGoymer/githapi documentation built on Oct. 22, 2021, 10:56 a.m.