create_milestone: Create a milestone in a repository

Description Usage Arguments Details Value Examples

View source: R/milestones.R

Description

This function creates a new milestone for the specified repository in GitHub. It can also be used to set a due date.

Usage

1
create_milestone(title, repo, description, due_on, state = "open", ...)

Arguments

title

(string) The title of the milestone.

repo

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

description

(string, optional) A description of the milestone.

due_on

(string, optional) The milestone due date. This is in the format: YYYY-MM-DD.

state

(string, optional) The state of the milestone. Either "open" or "closed". Default: "open".

...

Parameters passed to gh_request().

Details

For more details see the GitHub API documentation:

Value

create_milestone() returns a list of the milestone's properties.

Milestone Properties:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 

  create_milestone(
    title       = "test milestone",
    repo        = "ChadGoymer/githapi",
    description = "This is a test milestone",
    due_on      = "2030-01-01 00:00:00"
  )


## End(Not run)

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