Create a new IssueTB object

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 "open" (by default) if the issue is still open or "closed" if the issue is now closed.

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 source is set to "online"). Defaults to the package option IssueTrackeR.repo.

owner

A character string specifying the GitHub owner (only taken into account if source is set to "online"). Defaults to the package option IssueTrackeR.owner.

...

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)