Skip to content

Commit fd466c1

Browse files
Merge pull request #914 from lorenzwalthert/gh-actions-integration
Gh actions integration
2 parents e435f57 + 16e5381 commit fd466c1

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525

2626
**Other changes**
2727

28+
* {styler} can be ran via GitHub Actions using
29+
`usethis::use_github_action("style")` (#914).
30+
2831
* `.onLoad()` method no longer broken with {cli} >= 3.1 (#893).
2932
* Piped function without brackets `substitute(x %>% y)` don't get `()` added
3033
anymore for one level deep (not more yet, see #889), as this can change

vignettes/third-party-integrations.Rmd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ knitr::opts_chunk$set(
1717
styler functionality is available in other tools, most notably
1818

1919
* as a pre-commit hook `style-files` in
20-
<https://github.com/lorenzwalthert/precommit>
20+
<https://github.com/lorenzwalthert/precommit> to format before commit
21+
(locally) and enforced as a continuous integration step in the cloud through
22+
<https://pre-commit.ci>.
2123

2224
* via `usethis::use_tidy_style()` styles your project according to the tidyverse
2325
style guide.
@@ -28,7 +30,10 @@ styler functionality is available in other tools, most notably
2830
is used. The most convenient way to set this up is via
2931
[`usethis::use_tidy_github_actions()`](https://usethis.r-lib.org/reference/tidyverse.html).
3032

31-
* as a formatter for RMarkdown without modifying the source. This feature is
33+
* through the [GitHub Action Workflow](https://github.com/r-lib/actions/tree/v2-branch/examples#style-package) that triggers `styler::style_pkg()`
34+
on changes in source files.
35+
36+
* as a formatter for R Markdown without modifying the source. This feature is
3237
implemented as a code chunk option in knitr. use `tidy = "styler"` in the
3338
header of a code chunks (e.g.` ```{r name-of-the-chunk, tidy = "styler"} `),
3439
or `knitr::opts_chunk$set(tidy = "styler")` at the top of your RMarkdown

0 commit comments

Comments
 (0)