The GitHub REST API is a powerful tool that allows developers to interact with GitHub programmatically. It provides a set of endpoints that allows a user to create integration, retrieve data, and automate workflows related to GitHub repositories. It is a means by which users can interact with GitHub without directly using a web interface.
Usage
getGitRepoStart(repo_name, out.format = "%Y-%m-%d")
getGitRepoChange(repo_name, out.format = "%Y-%m-%d")
Value
date of creation of repository as a character
date of the last update of repository as a character
Details
The two functions utilize the GitHub REST API to extract important temporal information about a GitHub repository.
- the getGitRepoStart function is used to retrieve the date a GitHub repository was first created.
- the getGitRepoChange function retrieves the date a GitHub repository was last updated.
Examples
# Use default date format
getGitRepoStart(repo_name = "oobianom/quickcode")
#> [1] "2023-06-28"
# Specify date format
getGitRepoStart(repo_name = "oobianom/quickcode", out.format = "%j|%Y")
#> [1] "179|2023"
getGitRepoStart(repo_name = "oobianom/quickcode", out.format = "%D|%j")
#> [1] "06/28/23|179"
getGitRepoChange(repo_name = "oobianom/shinyStorePlus", out.format = "%d-%b-%Y")
#> [1] "04-Aug-2024"
getGitRepoChange(repo_name = "oobianom/r2social", out.format = "%Y/%m/%d")
#> [1] "2024/07/30"