Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored and aviator-bot committed Nov 5, 2023
1 parent 1d8f247 commit 0e744be
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 126 deletions.
80 changes: 2 additions & 78 deletions tests/testthat/_snaps/bump_version.md
Original file line number Diff line number Diff line change
@@ -1,86 +1,10 @@
# 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 `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.
Error in `default_commit_range()`:
! unused argument (ref)

# bump_version() errors informatively for forbidden notifications

Expand Down
5 changes: 0 additions & 5 deletions tests/testthat/_snaps/bump_version/NEWS-nondev.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<!-- 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: 0 additions & 5 deletions tests/testthat/_snaps/bump_version/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<!-- 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: 0 additions & 10 deletions tests/testthat/_snaps/bump_version/NEWS2.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
<!-- 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: 0 additions & 7 deletions tests/testthat/_snaps/unbump_version/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
<!-- 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: 6 additions & 9 deletions tests/testthat/_snaps/update-news.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@
$news
# A tibble: 1 x 10
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>
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>
$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)

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

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

# fledge (development version)

## Bug fixes

- Horrible bug.

## Features

- Neat helper.
- New stuff.
- One.


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

# fledge (development version)

## Features

- New stuff.
- One.


# fledge 0.1.0
Expand Down

0 comments on commit 0e744be

Please sign in to comment.