Clones the sap GitHub repository to a
temporary directory, then returns its branches and their last update times as
a data frame. The temporary directory is removed before the function returns,
so nothing is left in your working directory.
Value
A data frame with two columns: branch (the branch name) and
last_updated (the date the branch was last updated), ordered
alphabetically by branch name. Branches named HEAD, main, and
gh-pages are excluded.
How it works
Clones the
saprepository from GitHub into a temporary directoryLists all branches of the cloned repository
Separates each branch
nameintosourceandbranchFilters the branches to those matching
regex, if one is suppliedDeletes the temporary directory (even if an earlier step fails)