5
5
6
6
<!-- badges: start -->
7
7
8
- [ ![ R-CMD-check] ( https://github.com/ThinkR-open/gitdown/workflows/R-CMD-check/badge.svg )] ( https://github.com/ThinkR-open/gitdown/actions )
8
+ [ ![ R-CMD-check] ( https://github.com/ThinkR-open/gitdown/actions/ workflows/R-CMD-check.yaml /badge.svg )] ( https://github.com/ThinkR-open/gitdown/actions/workflows/R-CMD-check.yaml )
9
9
[ ![ Coverage
10
10
status] ( https://codecov.io/gh/ThinkR-open/gitdown/branch/main/graph/badge.svg )] ( https://codecov.io/github/ThinkR-open/gitdown?branch=main )
11
11
[ ![ CRAN
@@ -40,9 +40,9 @@ remotes::install_github("ThinkR-open/gitdown")
40
40
Create a versioned directory with some commits and a NEWS.md in a
41
41
temporary directory
42
42
43
- - Some commits mention an issue with ` # `
44
- - Some commits mention a ticket with ` ticket `
45
- - A commit is associated with a tag
43
+ - Some commits mention an issue with ` # `
44
+ - Some commits mention a ticket with ` ticket `
45
+ - A commit is associated with a tag
46
46
47
47
``` r
48
48
library(dplyr )
@@ -109,17 +109,17 @@ get_commits_pattern(repo, pattern = "#[[:digit:]]+", ref = "main") %>%
109
109
select(pattern.content , everything())
110
110
# > 4 commits found.
111
111
# > # A tibble: 7 × 12
112
- # > pattern.content sha summary message author email when order
113
- # > <chr> <chr> <chr> <chr> <chr> <chr> <dttm> <int>
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
121
- # > # … with 4 more variables: tag.name <chr>, tag.message <chr>,
122
- # > # pattern.type <chr>, pattern. title <chr>
112
+ # > pattern.content sha summary message author email when order
113
+ # > <chr> <chr> <chr> <chr> <chr> <chr> <dttm> <int>
114
+ # > 1 #32 1fd238 … Add NE… "Add N … Alice alic… 2024-02-28 13:22:16 4
115
+ # > 2 #1 1fd238 … Add NE… "Add N … Alice alic… 2024-02-28 13:22:16 4
116
+ # > 3 #12 1fd238 … Add NE… "Add N … Alice alic… 2024-02-28 13:22:16 4
117
+ # > 4 #2 91e2c1 … Third … "Third… Alice alic… 2024-02-28 13:22:16 3
118
+ # > 5 #145 91e2c1 … Third … "Third… Alice alic… 2024-02-28 13:22:16 3
119
+ # > 6 #1 7e998d … exampl… "examp … Alice alic… 2024-02-28 13:22:16 2
120
+ # > 7 <NA> 1b6cc5 … First … "First… Alice alic… 2024-02-28 13:22:16 1
121
+ # > # ℹ 4 more variables: tag.name <chr>, tag.message <chr>, pattern.type <chr>,
122
+ # > # pattern.title <chr>
123
123
```
124
124
125
125
Get commits with issues and specific home-made pattern. Use a named
@@ -134,21 +134,21 @@ get_commits_pattern(
134
134
select(pattern.type , pattern.content , everything())
135
135
# > 4 commits found.
136
136
# > # A tibble: 12 × 12
137
- # > pattern.type pattern.content sha summary message author email
138
- # > <chr> <chr> <chr> <chr> <chr> <chr> <chr>
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 …
151
- # > # … with 5 more variables: when <dttm>, order <int>, tag.name <chr>,
137
+ # > pattern.type pattern.content sha summary message author email
138
+ # > <chr> <chr> <chr> <chr> <chr> <chr> <chr>
139
+ # > 1 Tickets ticket6789 1fd238efc602f52946 … Add NE… "Add N … Alice alic …
140
+ # > 2 Tickets ticket1234 1fd238efc602f52946 … Add NE… "Add N … Alice alic …
141
+ # > 3 Issues #32 1fd238efc602f52946 … Add NE… "Add N … Alice alic …
142
+ # > 4 Issues #1 1fd238efc602f52946 … Add NE… "Add N … Alice alic …
143
+ # > 5 Issues #12 1fd238efc602f52946 … Add NE… "Add N … Alice alic …
144
+ # > 6 Tickets <NA> 91e2c152a0525fc589 … Third … "Third… Alice alic …
145
+ # > 7 Issues #2 91e2c152a0525fc589 … Third … "Third… Alice alic …
146
+ # > 8 Issues #145 91e2c152a0525fc589 … Third … "Third… Alice alic …
147
+ # > 9 Tickets ticket1234 7e998d8e673e331274… exampl … "examp … Alice alic …
148
+ # > 10 Issues #1 7e998d8e673e331274… exampl … "examp … Alice alic …
149
+ # > 11 Tickets <NA> 1b6cc5d04920de4a60 … First … "First… Alice alic …
150
+ # > 12 Issues <NA> 1b6cc5d04920de4a60 … First … "First… Alice alic …
151
+ # > # ℹ 5 more variables: when <dttm>, order <int>, tag.name <chr>,
152
152
# > # tag.message <chr>, pattern.title <chr>
153
153
```
154
154
@@ -166,9 +166,9 @@ With this example, the vignette will show this content:
166
166
167
167
| File | Tracked in git | Date of creation | Last modification |
168
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 |
169
+ | NEWS.md | Yes | 2024-02-28 13:22:17 | 2024-02-28 13:22:17 |
170
+ | example.txt | Yes | 2024-02-28 13:22:17 | 2024-02-28 13:22:17 |
171
+ | R/my_mean.R | No | NA | 2024-02-28 13:22:17 |
172
172
173
173
## Sponsor
174
174
0 commit comments