Skip to content

Commit

Permalink
Updated time_commit() to include sha values in the data frame being r…
Browse files Browse the repository at this point in the history
…eturned.

- Changes made in R/repo_metrics.R
- Will assist in embedding links to github page for relevant commit  into the plot.
  • Loading branch information
analyticalmonk committed Jun 26, 2016
1 parent 6982013 commit 071098c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/repo_metrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ time_commit <- function(test_path, test_commit) {

time_df <- data.frame(test_name, metric_name = "seconds", status,
metric_val = seconds, message = msg_val,
date_time = commit_dtime)
sha = sha_val, date_time = commit_dtime)
test_results[[test_name]] <<- time_df
}

Expand All @@ -246,7 +246,7 @@ time_commit <- function(test_path, test_commit) {
test_results_df <- rbind(test_results_df, data.frame(test_name = basename(test_path),
metric_name = "seconds", status = file_status,
metric_val = seconds_file, message = msg_val,
date_time = commit_dtime))
sha = sha_val, date_time = commit_dtime))
rownames(test_results_df) <- NULL
test_results_df

Expand Down

0 comments on commit 071098c

Please sign in to comment.