github_api_project_issue_or_pr_comment_refresh | R Documentation |
Uses the adopted file name convention by github_api_iterate_pages
to identify
the latest downloaded Github created_at date among the directory(intended to be the folder).
It uses this date to construct a query and calls github_api_project_issue_or_pr_comments
github_api_project_issue_or_pr_comment_refresh(
owner,
repo,
token,
file_save_path,
verbose = TRUE
)
owner |
GitHub's repository owner (e.g. sailuh) |
repo |
GitHub's repository name (e.g. kaiaulu) |
token |
Your GitHub API token |
file_save_path |
the save path for the issue comments folder |
verbose |
boolean value. When set to true, it prints operational messages including greatest dates and the file name that contains the greatest date. |
If no files exist in the file_save_path,link{github_api_project_issue_or_pr_comments}
is called with no additional query and all comments are downloaded.
Because the endpoint this function relies on is based on the updated timestamp, running the refresher will download the most recent version of the comment changes. Only the most recent version of the comment will be downloaded, not all copies. However, if the same comment was modified before the next refresh call, then if the refresher function was executed again, then this would result in two comments with the same comment id being present in the table. This can be addressed by performing a group by over the comment\_id in the generated parsed table, and selecting to return the max(updated_at) comment, resulting in a table that only the most recent comment verson as of the latest time the refresher was executed.
For details, see https://docs.github.com/en/rest/reference/issues#list-repository-issues.
link{github_api_project_issue_or_pr_comments}
to download all comment 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
link{github_api_project_issue_or_pr_comments}
to call issue/comments endpoint
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.