Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
aviator-app[bot] authored and aviator-bot committed Nov 6, 2023
1 parent 8972f9c commit 6e20a8e
Show file tree
Hide file tree
Showing 9 changed files with 126 additions and 11 deletions.
80 changes: 78 additions & 2 deletions tests/testthat/_snaps/bump_version.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,86 @@
# bump_version() works -- dev

Code
bump_version()
Message
> Digesting messages from 3 commits.
v Found 1 NEWS-worthy entry.
-- Updating NEWS --
> Adding new entries to 'NEWS.md'.
-- Updating Version --
v Package version bumped to 0.0.0.9001.
> Added header to 'NEWS.md'.
> Committing changes.
-- Tagging Version --
> Creating tag v0.0.0.9001 with tag message derived from 'NEWS.md'.
! Run `fledge::finalize_version(push = TRUE)`.

---

Code
bump_version(no_change_behavior = "fail")
Condition
Error in `default_commit_range()`:
! unused argument (ref)
Error in `bump_version_impl()`:
x No change since last version.
i Use `no_change_behavior = "bump"` to force a version bump, or `no_change_behavior = "noop"` to do nothing.

---

Code
bump_version(no_change_behavior = "noop")
Message
i No change since last version.

---

Code
bump_version(no_change_behavior = "bump")
Message
> Digesting messages from 1 commits.
i Same as previous version.
-- Updating NEWS --
> Adding new entries to 'NEWS.md'.
-- Updating Version --
v Package version bumped to 0.0.0.9002.
> Added header to 'NEWS.md'.
> Committing changes.
-- Tagging Version --
> Creating tag v0.0.0.9002 with tag message derived from 'NEWS.md'.
! Run `fledge::finalize_version(push = TRUE)`.

# bump_version() works -- not dev

Code
bump_version(which = "major")
Message
> Digesting messages from 3 commits.
v Found 1 NEWS-worthy entry.
-- Updating NEWS --
> Adding new entries to 'NEWS.md'.
-- Updating Version --
v Package version bumped to 1.0.0.
> Added header to 'NEWS.md'.
> Committing changes.
-- Preparing package for CRAN release --
* Convert the change log in 'NEWS.md' to release notes.

# bump_version() errors informatively for forbidden notifications

Expand Down
5 changes: 5 additions & 0 deletions tests/testthat/_snaps/bump_version/NEWS-nondev.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->

# tea 1.0.0

- Add cool bla.


# tea 0.0.0.9000

* Added a `NEWS.md` file to track changes to the package.
5 changes: 5 additions & 0 deletions tests/testthat/_snaps/bump_version/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->

# tea 0.0.0.9001

- Add cool bla.


# tea 0.0.0.9000

* Added a `NEWS.md` file to track changes to the package.
10 changes: 10 additions & 0 deletions tests/testthat/_snaps/bump_version/NEWS2.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->

# tea 0.0.0.9002

- Same as previous version.


# tea 0.0.0.9001

- Add cool bla.


# tea 0.0.0.9000

* Added a `NEWS.md` file to track changes to the package.
7 changes: 7 additions & 0 deletions tests/testthat/_snaps/unbump_version/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->

# tea 0.0.0.9001

- Add cool blop.

- Add cool bla.


# tea 0.0.0.9000

* Added a `NEWS.md` file to track changes to the package.
15 changes: 9 additions & 6 deletions tests/testthat/_snaps/update-news.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@
$news
# A tibble: 1 x 10
start end h2 raw news
<int> <int> <lgl> <chr> <list>
1 3 6 FALSE "# tea 0.0.1 (2023-01-23)\n\n- One.\n" <named list [1]>
section_state title version date nickname
<chr> <chr> <chr> <chr> <chr>
1 keep tea 0.0.1 (2023-01-23) 0.0.1 (2023-01-23) <NA>
start end h2
<int> <int> <lgl>
1 3 6 FALSE
raw
<chr>
1 "# tea 0.0.1 (2023-01-23)\n\n- Added a `NEWS.md` file to track changes to the~
news section_state title version date nickname
<list> <chr> <chr> <chr> <chr> <chr>
1 <named list [1]> keep tea 0.0.1 (2023-01-23) 0.0.1 (2023-~ <NA>
$preamble_in_file
[1] TRUE
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/update-news/newchangelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

# tea 0.0.0.9001 (2023-03-20)

- One.
- Added a `NEWS.md` file to track changes to the package.

9 changes: 8 additions & 1 deletion tests/testthat/_snaps/update-news/samedev-updated.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

# fledge (development version)

- One.
## Bug fixes

- Horrible bug.

## Features

- Neat helper.
- New stuff.


# fledge 0.1.0
Expand Down
4 changes: 3 additions & 1 deletion tests/testthat/_snaps/update-news/samedev.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

# fledge (development version)

- One.
## Features

- New stuff.


# fledge 0.1.0
Expand Down

0 comments on commit 6e20a8e

Please sign in to comment.