Wrapper around gh::gh() for mocking
Usage
CallGHAPI(
strEndpoint,
strOwner = GetGHOwner(),
strRepo = GetGHRepo(),
strGHToken = gh::gh_token(),
numLimit = Inf,
...
)Arguments
- strEndpoint
(
length-1 character) The endpoint to call, e.g.,"GET /repos/{owner}/{repo}/issues".- strOwner
(
length-1 character) GitHub username or organization name.- strRepo
(
length-1 character) GitHub repository name.- strGHToken
(
length-1 character) GitHub token with permissions appropriate to the action being performed.- numLimit
(
length-1 numeric) Maximum number of results to return. Default isInf(no limit).- ...
Additional parameters passed to
gh::gh().
Value
The result of the gh::gh() call.