browse_docs: View GitHub API documentation

Description Usage Arguments Value Examples

View source: R/browse.R

Description

Opens browser to relevant parts of GitHub API documentation to learn more about field definitions and formatting. Inspired by similar browse_ functions included in the usethis package.

Usage

1
2
browse_docs(action = c("get", "post"), object = c("milestone", "issue",
  "issue event", "issue comment", "repo labels"))

Arguments

action

Character string denoting action you wish to complete: "get" (list existing) or "post" (creating new)

object

Character string denoting object on wish you want to apply an action. Supports "milestone", "issue", "issue event"

Value

Returns URL in non-interactive session or launches browser to docs in interactive session

Examples

1
2
3
4
## Not run: 
browse_docs('get', 'milestone')

## End(Not run)

projmgr documentation built on Aug. 5, 2019, 5:15 p.m.

Related to browse_docs in projmgr...