Skip to content

Commit

Permalink
fix: change commit messages (conventional commits) - fix #45
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Oct 19, 2023
1 parent 2e7ae12 commit b4fbbf0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Untrack (by git) `man/` folder and `NAMESPACE` for compendium
* Remove dependencies badge in README
* Change default values of `lifecycle` and `status` arguments in `new_package()`
* Change commit messages in `new_*()` functions (conventional commits)

# rcompendium 1.1

Expand Down
6 changes: 3 additions & 3 deletions R/new_compendium.R
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ new_compendium <- function(compendium = ".", license = "GPL (>= 2)",
## Commit changes ----

invisible(gert::git_add("."))
invisible(gert::git_commit("Init repo"))
invisible(gert::git_commit("init repo"))

if (!quiet) {
ui_done(paste0("Committing changes with the following message: ",
Expand Down Expand Up @@ -681,7 +681,7 @@ new_compendium <- function(compendium = ".", license = "GPL (>= 2)",
ui_title("Committing changes")

invisible(gert::git_add("."))
invisible(gert::git_commit("Setup GHA"))
invisible(gert::git_commit("ci: setup actions"))

if (!quiet) {

Expand Down Expand Up @@ -769,7 +769,7 @@ new_compendium <- function(compendium = ".", license = "GPL (>= 2)",
ui_title("Committing changes")

invisible(gert::git_add("."))
invisible(gert::git_commit("Edit README"))
invisible(gert::git_commit("doc: update README"))

if (!quiet) {

Expand Down
6 changes: 3 additions & 3 deletions R/new_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ new_package <- function(license = "GPL (>= 2)", status = NULL,
## Commit changes ----

invisible(gert::git_add("."))
invisible(gert::git_commit("Init repo"))
invisible(gert::git_commit("init repo"))

if (!quiet) {
ui_done(paste0("Committing changes with the following message: ",
Expand Down Expand Up @@ -728,7 +728,7 @@ new_package <- function(license = "GPL (>= 2)", status = NULL,
ui_title("Committing changes")

invisible(gert::git_add("."))
invisible(gert::git_commit("Setup GHA"))
invisible(gert::git_commit("ci: setup actions"))

if (!quiet) {

Expand Down Expand Up @@ -802,7 +802,7 @@ new_package <- function(license = "GPL (>= 2)", status = NULL,
ui_title("Committing changes")

invisible(gert::git_add("."))
invisible(gert::git_commit("Edit README"))
invisible(gert::git_commit("doc: update README"))

if (!quiet) {

Expand Down

0 comments on commit b4fbbf0

Please sign in to comment.