update_milestone: Update a milestone in a repository

Description Usage Arguments Details Value Examples

View source: R/milestones.R

Description

This function updates a milestone for the specified repository in GitHub. It can be used to change title, description or due date, but can also be used to close the milestone.

Usage

1
update_milestone(milestone, repo, title, description, due_on, state, ...)

Arguments

milestone

(string or character) The number or title of the milestone.

repo

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

title

(string, optional) The title of the milestone.

description

(string, optional) A description of the milestone.

due_on

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

state

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

...

Parameters passed to gh_request().

Details

For more details see the GitHub API documentation:

Value

update_milestone() returns a list of the milestone properties.

Milestone Properties:

Examples

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

  # Update the properties of a milestone
  update_milestone(
    milestone   = "test milestone",
    repo        = "ChadGoymer/githapi",
    title       = "updated test milestone",
    description = "This is an updated test milestone",
    due_on      = "2020-12-01"
  )

  # Close a milestone
  update_milestone(
    milestone = "updated test milestone",
    repo      = "ChadGoymer/githapi",
    state     = "closed"
  )


## End(Not run)

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