Skip to content

Commit 520d625

Browse files
committed
include git commit in the notes
1 parent 0b700cd commit 520d625

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

inst/extdata/templates/codecheck/codecheck.Rmd

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,30 @@ This code was (not) straightforward to codecheck.
6161

6262
# CODECHECKER notes
6363

64+
```{r git_sha, echo=FALSE}
65+
gitInfo <- ""
66+
if(git2r::in_repository(root)) {
67+
gitInfo <- paste0("This check is based on the commit `", git2r::last_commit()$sha, "`.")
68+
}
69+
```
70+
6471
The GitHub repo ...
72+
`r gitInfo`
6573
Code was written in ...
6674
I went through the following steps ...
6775
One hard problem was ...
76+
I added the following files ... using tools/methods ...
6877

6978
This took ... minutes to complete on {a large workstation, my laptop}.
7079

80+
## Recommendations
81+
82+
I suggest to the authors to consider the following suggestions for their next publication or workflow:
83+
84+
- ...
85+
86+
(document here if any of the suggestions were taken up by the authors in the meantime - do not remove any, keep track of contributions via feedback)
87+
7188
\clearpage
7289

7390
# Manifest files

0 commit comments

Comments
 (0)