Skip to content

Commit 708b1a1

Browse files
Merge pull request #689 from lorenzwalthert/update-news
- Update news (#689).
2 parents f2487b8 + 94c9d37 commit 708b1a1

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

NEWS.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,15 @@
2727
- empty lines are now removed between pipes (#645).
2828
- overhaul pgkdown site: Add search (#623), group function in Reference (#625).
2929
- always strip trailing spaces and make cache insensitive to it (#626).
30-
- minor documentation improvements (#643, #618, #614, #677).
30+
- minor documentation improvements (#643, #618, #614, #677, #651, #667, #672,
31+
#687).
32+
- The internal `create_tree()` only used in testing of styler now works when the
33+
cache is activated (#688).
34+
35+
## Infrastructure changes
36+
37+
- switched from travis and AppVeyor to GitHub Actions (#653, #660).
38+
- Added basic continuous benchmarking (#674, #684).
3139

3240
# styler 1.3.2
3341

bench/01-declarations.R

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@ plot_against_base <- function(new_bm,
1818
# if a pull request
1919
reference <- bm[commit_is_reference, "benchmarks"][[1]][[1]]
2020
# if benchmark exists in base branch
21-
reference <- reference %>%
22-
dplyr::filter(.data$name %in% !!name)
23-
if (nrow(reference) > 0) {
24-
# if benchmark exists in base branch
25-
reference$expression <- bench:::new_bench_expr(Sys.getenv("GITHUB_BASE_REF"))
26-
new_bm <- dplyr::bind_rows(reference, new_bm)
27-
stopifnot(nrow(new_bm) == 2)
28-
diff_in_percent <- round(100 * diff(new_bm$p50) / new_bm$p50[1])
29-
pr_comment <- glue::glue("* {name}: {new_bm$p50[1]} -> {new_bm$p50[2]} ({diff_in_percent}%)\n")
30-
cat(pr_comment, file = "pr-comment/info.txt", append = TRUE)
21+
if ("name" %in% names(reference)) {
22+
reference <- reference %>%
23+
dplyr::filter(.data$name %in% !!name)
24+
if (nrow(reference) > 0) {
25+
# if benchmark exists in base branch
26+
reference$expression <- bench:::new_bench_expr(Sys.getenv("GITHUB_BASE_REF"))
27+
new_bm <- dplyr::bind_rows(reference, new_bm)
28+
stopifnot(nrow(new_bm) == 2)
29+
diff_in_percent <- round(100 * diff(new_bm$p50) / new_bm$p50[1])
30+
pr_comment <- glue::glue("* {name}: {new_bm$p50[1]} -> {new_bm$p50[2]} ({diff_in_percent}%)\n")
31+
cat(pr_comment, file = "pr-comment/info.txt", append = TRUE)
32+
}
3133
}
3234
}
3335
new_bm$branch <- factor(new_bm$expression)

0 commit comments

Comments
 (0)