GitHub Issue related tools
Source:R/issue.R
, R/issue_close.R
, R/issue_create.R
, and 1 more
issue.Rd
issue_create
creates a new issue.issue_close
closes an existing issue.issue_edit
edits the properties of an existing issue.
Arguments
- repo
Character. Address of one or more repositories in
owner/name
format.- number
Integer. GitHub issue number.
- 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.
- delay
Numeric. Delay between each API request. Issue creation has a secondary rate limit (~ 20/min).
- state
Character. State of the issue. Either "open" or "closed".
- milestone
Character. The number of the milestone to associate this issue with. Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise.
Examples
if (FALSE) {
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)
issue_edit(
"ghclass-test/test_issue", 2,
title = "New issue 2 title!",
body = "Replacement body text"
)
ghclass::repo_issues("ghclass-test/test_issue")
repo_delete("ghclass-test/test_issue", prompt=FALSE)
}