This function retrieves metadata about a GitHub repository, including creation date, stars, forks, and the number of recent commits within the last 30 days.
Arguments
- owner
A character string specifying the owner of the repository (e.g., GitHub username).
- repo
A character string specifying the name of the repository. A github Personal Access Token (PAT) will be needed for some request or to help with the rate limit.
Use Sys.setenv(GITHUB_TOKEN = "personal_access_token") or store your token in a .Renviron file (GitHub fine grained token are not yet covered by gh)
Value
A list containing: - `created_at`: Creation date of the repository. - `stars`: Number of stars the repository - `forks`: Number of forks of the repository. - `date`: acquisition date in the format "YYYY-MM-DD". - `recent_commits_count`: count of commits in the last 30 days (from acquisition date).