You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.Rmd
+35-20Lines changed: 35 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,13 @@ You can install the last version of {gitdown} from Github:
40
40
remotes::install_github("ThinkR-open/gitdown")
41
41
```
42
42
43
-
## Example
43
+
## Create a reproducible example of a versioned directory
44
+
45
+
Create a versioned directory with some commits and a NEWS.md in a temporary directory
46
+
47
+
- Some commits mention an issue with `#`
48
+
- Some commits mention a ticket with `ticket`
49
+
- A commit is associated with a tag
44
50
45
51
```{r example, message=FALSE}
46
52
library(dplyr)
@@ -49,26 +55,11 @@ library(gitdown)
49
55
repo <- fake_repo()
50
56
```
51
57
52
-
Get commits with issues mentioned. The searched pattern is a `#` followed by at least one number: `"#[[:digit:]]+"`. Variable `pattern.content` lists patterns found in the commit messages.
## Create a gitbook of commits sorted by a pattern
71
59
60
+
The main function of {gitdown} is to build this gitbook with all commit messages ordered according to a pattern. Each commit message associated with an issue will be recorded in the section of this issue. A commit message can thus appears multiple times if it is associated with multiple issues.
61
+
If you have your own referencing system for tickets in an external software, you can also create the gitbook associated like using `ticket` as in the example below.
If you add a table of correspondence, you can change titles of the patterns.
82
-
_Note that you can use [{gitlabr}](https://statnmap.github.io/gitlabr/) or [{gh}](https://gh.r-lib.org) to retrieve list of issues from Gitlab or Github respectively._
73
+
_Note that you can use [{gitlabr}](https://statnmap.github.io/gitlabr/) or [{gh}](https://gh.r-lib.org) to retrieve list of issues from Gitlab or Github respectively, as presented in ["Download Gitlab or Github issues and make a summary report of your commits"](https://rtask.thinkr.fr/download-gitlab-or-github-issues-and-make-a-summary-report-of-your-commits/)._
74
+
83
75
```{r, eval=FALSE}
84
76
# With table of correspondence
85
77
pattern.table <- data.frame(
@@ -99,6 +91,29 @@ _Note that characters like `[`, `]`, `_` or `*` will be replaced by `-` in the t
As a side effect of {gitdown}, you can get some intermediate information used to build the book with some exported functions.
97
+
98
+
Get commits with issues mentioned. The searched pattern is a `#` followed by at least one number: `"#[[:digit:]]+"`. Variable `pattern.content` lists patterns found in the commit messages.
0 commit comments