Queries issues from a specified repository using the GitHub REST API and returns a tibble with selected fields. Includes issues that were open at the specified date or created after it.
Arguments
- owner
character GitHub user or organization name (e.g., "NewGraphEnvironment").
- repo
character Repository name (e.g., "ngr").
- date_since
character (ISO 8601 datetime or date). Issues must have been open on or created after this date.
- token
character GitHub personal access token. Defaults to
gh::gh_token(). Required to access private repositories.- fields_return
character vector of fields to return. Supports nested fields using "$" notation (e.g., "milestone$title").
Examples
ngr_git_issue(
owner = "NewGraphEnvironment",
repo = "ngr",
date_since = "2024-01-01",
token = NULL
)
#> Error in validate_gh_pat(new_gh_pat(x)): Invalid GitHub PAT format
#> ℹ A GitHub PAT must have one of three forms:
#> • 40 hexadecimal digits (older PATs)
#> • A 'ghp_' prefix followed by 36 to 251 more characters (newer PATs)
#> • A 'github_pat_' prefix followed by 36 to 244 more characters (fine-grained
#> PATs)
#> ℹ Read more at
#> <https://gh.r-lib.org/articles/managing-personal-access-tokens.html>.
