new_issue {IssueTrackeR} | R Documentation |
Create a new IssueTB
object
Description
Create a new IssueTB
object
Usage
new_issue(
title,
body,
number,
state = c("open", "closed"),
created_at = Sys.Date(),
labels = NULL,
milestone = NULL,
issue = list(),
repo = NULL,
owner = NULL,
...
)
Arguments
title |
a string. The title of the issue. |
body |
a string. The title of the issue. |
number |
a string. The title of the issue. |
state |
a character string that is either |
created_at |
a date. The title of the issue. |
labels |
a vector string (or missing). The labels of the issue. |
milestone |
a string (or missing). The milestone of the issue. |
issue |
a list representing the object. |
repo |
A character string specifying the GitHub repository name (only
taken into account if |
owner |
A character string specifying the GitHub owner (only taken
into account if |
... |
Other information we would like to add to the issue. |
Value
a IssueTB
object.
Examples
# Empty issue
issue1 <- new_issue()
# Custom issue
issue2 <- new_issue(
title = "Nouvelle issue",
body = "Un nouveau bug pour la fonction...",
number = 47,
created_at = Sys.Date()
)
issue3 <- new_issue(issue = issue2)