Learn R Programming

ghclass (version 0.2.0)

issue: GitHub Issue related tools

Description

  • issue_create creates an issue for a GitHub repository.

  • issue_close closes an issue for a GitHub repository.

Usage

issue_close(repo, number)

issue_create(repo, title, body, labels = character(), assignees = character())

Arguments

repo

Character. Address of one or more repositories in owner/name format.

number

Integer. GitHub issue number of the issue.

title

Character. Title of the issue.

body

Character. Content of the issue.

labels

Character. Vector of the labels to associate with this issue

assignees

Character. Vector of logins for users assigned to the issue.

See Also

repo_issues

Examples

Run this code
# NOT RUN {
repo_create("ghclass-test","test_issue")

issue_create(
  "ghclass-test/test_issue",
  title = "Issue 1",
  body = "This is an issue"
 )

issue_create(
  "ghclass-test/test_issue",
  title = "Issue 2", body = "This is also issue",
  label = "Important"
)

issue_create(
  "ghclass-test/test_issue",
  title = "Issue 3", body = "This is also issue",
  label = c("Important", "Super Important"),
  assignees = "rundel"
)

issue_close("ghclass-test/test_issue", 1)

repo_delete("ghclass-test/test_issue", prompt=FALSE)
# }

Run the code above in your browser using DataLab