getGitRepoStart {quickcode}R Documentation

Fetch GitHub Repository Creation & Last Updated Date

Description

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")

Arguments

repo_name

name of the repository

out.format

date output format

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.

Value

date of creation of repository as a character

date of the last update of repository as a character

Examples

# Use default date format
getGitRepoStart(repo_name = "oobianom/quickcode")

# Specify date format
getGitRepoStart(repo_name = "oobianom/quickcode", out.format = "%j|%Y")
getGitRepoStart(repo_name = "oobianom/quickcode", out.format = "%D|%j")

getGitRepoChange(repo_name = "oobianom/shinyStorePlus", out.format = "%d-%b-%Y")
getGitRepoChange(repo_name = "oobianom/r2social", out.format = "%Y/%m/%d")


[Package quickcode version 0.8 Index]