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.
Usage
ngr_git_issue(
owner,
repo,
date_since,
token = Sys.getenv("GITHUB_PAT"),
fields_return = c("url", "title", "body", "comments_url", "created_at", "closed_at",
"milestone$title")
)
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 Sys.getenv("GITHUB_PAT"). 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
)
#> # A tibble: 15 × 7
#> url title body comments_url created_at closed_at milestone.title
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 https://api.gi… Issu… NA https://api… 2025-06-1… 2025-06-… NA
#> 2 https://api.gi… `ngr… "see… https://api… 2025-06-1… NA NA
#> 3 https://api.gi… Prov… NA https://api… 2025-06-1… 2025-06-… NA
#> 4 https://api.gi… func… "Coe… https://api… 2025-05-2… 2025-05-… Functions to m…
#> 5 https://api.gi… `ngr… "Ret… https://api… 2025-05-1… 2025-05-… Build git api …
#> 6 https://api.gi… `ngr… "ret… https://api… 2025-05-1… 2025-05-… Build git api …
#> 7 https://api.gi… Add … "wil… https://api… 2025-04-0… NA NA
#> 8 https://api.gi… `ngr… "Eve… https://api… 2025-02-0… 2025-02-… NA
#> 9 https://api.gi… move… "mos… https://api… 2025-01-2… NA Develop series…
#> 10 https://api.gi… ngr_… "Con… https://api… 2025-01-2… 2025-01-… Develop series…
#> 11 https://api.gi… `ngr… "Com… https://api… 2025-01-2… 2025-01-… Develop series…
#> 12 https://api.gi… `ngr… "get… https://api… 2025-01-2… 2025-01-… Develop series…
#> 13 https://api.gi… `ngr… "Gen… https://api… 2025-01-1… 2025-01-… Develop series…
#> 14 https://api.gi… get … "Rem… https://api… 2025-01-1… 2025-01-… NA
#> 15 https://api.gi… extr… "use… https://api… 2025-01-1… NA NA