github_api_project_issue_refresh: Download Project Issues Refresh

github_api_project_issue_refreshR Documentation

Download Project Issues Refresh

Description

Uses the adopted file name convention by github_api_iterate_pages to identify the latest downloaded Github created_at date among directory "issue_search". It returns the first page of the github query for issues created after this date by calling github_api_project_issue_search

Usage

github_api_project_issue_refresh(
  owner,
  repo,
  token,
  save_path_issue_refresh,
  issue_or_pr,
  verbose
)

Arguments

owner

GitHub's repository owner (e.g. sailuh)

repo

GitHub's repository name (e.g. kaiaulu)

token

Your GitHub API token

save_path_issue_refresh

The folder path that the refresh downloader downloads to

issue_or_pr

This specifies whether issues or pull requests are being searched for. Acceptable inputs are "is:issue" or "is:pull-request".

verbose

A boolean value that prints operational messages when set to TRUE. These may include announcing successful execution of code, API queries, files saved, etc.

Details

If the issue directory is empty, then the created query will not be appended to the api call and the first page of a query retrieving all issues will be returned. This function can therefore be used in the specified folder to continuously refresh available issues data.

References

For details, see https://docs.github.com/en/rest/reference/issues#list-repository-issues.

For details on timestampes, se https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests#search-by-when-an-issue-or-pull-request-was-created-or-last-updated

See Also

link{github_api_project_issue} to download all issue data

link{format_created_at_from_file} for function that iterates through a .json file and returns the greatest 'created_at' value

link{github_api_iterate_pages} to write data returned by this function to file as .json


sailuh/kaiaulu documentation built on Dec. 10, 2024, 3:14 a.m.