data-raw/gitlogs.R

# TODO: git_log shows rebase & merge (commit) time, while "git log" shows original (author) time
#   issue: https://github.com/r-lib/gert/issues/176
library(purrr)
library(dplyr)
library(gert)
library(lubridate)

gitlogs <- map_dfr(
  c(
    "jbplot", "rdev", "rstudio-training", "rtraining", "siracon2022", "software-resilience",
    "workshop7"
  ),
  ~ mutate(git_log(repo = paste0("../", .x), max = .Machine$integer.max),
    repo = .x, .before = "commit"
  )
) |>
  filter(time < ymd_h("2022-05-01 0", tz = Sys.timezone())) |>
  # explicitly set time zone since gert sets time zone to ""
  mutate(time = with_tz(time, Sys.timezone())) |>
  arrange(time)

usethis::use_data(gitlogs, overwrite = TRUE)
jabenninghoff/siracon2022 documentation built on July 17, 2025, 12:08 a.m.