77
88[ ![ R-CMD-check] ( https://github.com/ThinkR-open/gitdown/workflows/R-CMD-check/badge.svg )] ( https://github.com/ThinkR-open/gitdown/actions )
99[ ![ Coverage
10- status] ( https://codecov.io/gh/ThinkR-open/gitdown/branch/master /graph/badge.svg )] ( https://codecov.io/github/ThinkR-open/gitdown?branch=master )
10+ status] ( https://codecov.io/gh/ThinkR-open/gitdown/branch/main /graph/badge.svg )] ( https://codecov.io/github/ThinkR-open/gitdown?branch=main )
1111[ ![ CRAN
1212status] ( https://www.r-pkg.org/badges/version/gitdown )] ( https://CRAN.R-project.org/package=gitdown )
1313<!-- badges: end -->
@@ -105,19 +105,19 @@ followed by at least one number: `"#[[:digit:]]+"`. Variable
105105` pattern.content ` lists patterns found in the commit messages.
106106
107107``` r
108- get_commits_pattern(repo , pattern = " #[[:digit:]]+" , ref = " master " ) %> %
108+ get_commits_pattern(repo , pattern = " #[[:digit:]]+" , ref = " main " ) %> %
109109 select(pattern.content , everything())
110110# > 4 commits found.
111- # > # A tibble: 7 x 12
111+ # > # A tibble: 7 × 12
112112# > pattern.content sha summary message author email when order
113113# > <chr> <chr> <chr> <chr> <chr> <chr> <dttm> <int>
114- # > 1 #32 86ec5 … Add NE… "Add NE… Alice alic… 2021-05-10 14:03:56 4
115- # > 2 #1 86ec5 … Add NE… "Add NE… Alice alic… 2021-05-10 14:03:56 4
116- # > 3 #12 86ec5 … Add NE… "Add NE… Alice alic… 2021-05-10 14:03:56 4
117- # > 4 #2 5e338 … Third … "Third … Alice alic… 2021-05-10 14:03:56 3
118- # > 5 #145 5e338 … Third … "Third … Alice alic… 2021-05-10 14:03:56 3
119- # > 6 #1 cefcf … exampl… "exampl… Alice alic… 2021-05-10 14:03:56 2
120- # > 7 <NA> f50e2 … First … "First … Alice alic… 2021-05-10 14:03:56 1
114+ # > 1 #32 8790c … Add NE… "Add NE… Alice alic… 2022-03-04 15:31:14 4
115+ # > 2 #1 8790c … Add NE… "Add NE… Alice alic… 2022-03-04 15:31:14 4
116+ # > 3 #12 8790c … Add NE… "Add NE… Alice alic… 2022-03-04 15:31:14 4
117+ # > 4 #2 c0870 … Third … "Third … Alice alic… 2022-03-04 15:31:14 3
118+ # > 5 #145 c0870 … Third … "Third … Alice alic… 2022-03-04 15:31:14 3
119+ # > 6 #1 a97db … exampl… "exampl… Alice alic… 2022-03-04 15:31:14 2
120+ # > 7 <NA> b27b5 … First … "First … Alice alic… 2022-03-04 15:31:14 1
121121# > # … with 4 more variables: tag.name <chr>, tag.message <chr>,
122122# > # pattern.type <chr>, pattern.title <chr>
123123```
@@ -129,25 +129,25 @@ vector to properly separate types of patterns.
129129get_commits_pattern(
130130 repo ,
131131 pattern = c(" Tickets" = " ticket[[:digit:]]+" , " Issues" = " #[[:digit:]]+" ),
132- ref = " master "
132+ ref = " main "
133133) %> %
134134 select(pattern.type , pattern.content , everything())
135135# > 4 commits found.
136- # > # A tibble: 12 x 12
136+ # > # A tibble: 12 × 12
137137# > pattern.type pattern.content sha summary message author email
138138# > <chr> <chr> <chr> <chr> <chr> <chr> <chr>
139- # > 1 Tickets ticket6789 86ec55cd … Add NEWS "Add NEWS\n\n… Alice alice…
140- # > 2 Tickets ticket1234 86ec55cd … Add NEWS "Add NEWS\n\n… Alice alice…
141- # > 3 Issues #32 86ec55cd … Add NEWS "Add NEWS\n\n… Alice alice…
142- # > 4 Issues #1 86ec55cd … Add NEWS "Add NEWS\n\n… Alice alice…
143- # > 5 Issues #12 86ec55cd … Add NEWS "Add NEWS\n\n… Alice alice…
144- # > 6 Tickets <NA> 5e338c4c … Third co… "Third commit… Alice alice…
145- # > 7 Issues #2 5e338c4c … Third co… "Third commit… Alice alice…
146- # > 8 Issues #145 5e338c4c … Third co… "Third commit… Alice alice…
147- # > 9 Tickets ticket1234 cefcfbb7 … example:… "example: mod… Alice alice…
148- # > 10 Issues #1 cefcfbb7 … example:… "example: mod… Alice alice…
149- # > 11 Tickets <NA> f50e27f9 … First co… "First commit… Alice alice…
150- # > 12 Issues <NA> f50e27f9 … First co… "First commit… Alice alice…
139+ # > 1 Tickets ticket6789 8790cc60 … Add NEWS "Add NEWS\n\n… Alice alice…
140+ # > 2 Tickets ticket1234 8790cc60 … Add NEWS "Add NEWS\n\n… Alice alice…
141+ # > 3 Issues #32 8790cc60 … Add NEWS "Add NEWS\n\n… Alice alice…
142+ # > 4 Issues #1 8790cc60 … Add NEWS "Add NEWS\n\n… Alice alice…
143+ # > 5 Issues #12 8790cc60 … Add NEWS "Add NEWS\n\n… Alice alice…
144+ # > 6 Tickets <NA> c0870ab4 … Third co… "Third commit… Alice alice…
145+ # > 7 Issues #2 c0870ab4 … Third co… "Third commit… Alice alice…
146+ # > 8 Issues #145 c0870ab4 … Third co… "Third commit… Alice alice…
147+ # > 9 Tickets ticket1234 a97db45b … example:… "example: mod… Alice alice…
148+ # > 10 Issues #1 a97db45b … example:… "example: mod… Alice alice…
149+ # > 11 Tickets <NA> b27b55fe … First co… "First commit… Alice alice…
150+ # > 12 Issues <NA> b27b55fe … First co… "First commit… Alice alice…
151151# > # … with 5 more variables: when <dttm>, order <int>, tag.name <chr>,
152152# > # tag.message <chr>, pattern.title <chr>
153153```
@@ -164,11 +164,11 @@ create_vignette_last_modif(repo_pkg, path = "")
164164
165165With this example, the vignette will show this content:
166166
167- | File | Tracked in git | Date of creation | Last modification |
168- | :------------- | :---------------| :--------------------| :--------------------|
169- | NEWS.md | Yes | 2021-05-10 16:03:56 | 2021-05-10 16:03:56 |
170- | example.txt | Yes | 2021-05-10 16:03:56 | 2021-05-10 16:03:56 |
171- | R/my \_ mean .R | No | NA | 2021-05-10 16:03:56 |
167+ | File | Tracked in git | Date of creation | Last modification |
168+ | :------------| :---------------| :--------------------| :--------------------|
169+ | NEWS.md | Yes | 2022-03-04 16:31:14 | 2022-03-04 16:31:14 |
170+ | example.txt | Yes | 2022-03-04 16:31:14 | 2022-03-04 16:31:14 |
171+ | R/my_mean .R | No | NA | 2022-03-04 16:31:14 |
172172
173173## Sponsor
174174
0 commit comments