Fetch the pull request number for a branch or other git ref
Source:R/GuessPRNumber.R
FetchRefPRNumber.RdFetch the pull request number for a branch or other git ref
Usage
FetchRefPRNumber(
strSourceRef = GetActiveBranch(),
strOwner = gh::gh_tree_remote()[["username"]],
strRepo = gh::gh_tree_remote()[["repo"]],
strGHToken = gh::gh_token()
)Arguments
- strSourceRef
(
length-1 character) Name of the git reference that contains changes. Defaults to the active branch in this repository.- strOwner
(
length-1 character) GitHub username or organization name.- strRepo
(
length-1 character) GitHub repository name.- strGHToken
(
length-1 character) GitHub token with permissions to read issues.