Skip to content

Commit 6e20a8e

Browse files
aviator-app[bot]aviator-bot
authored and
aviator-bot
committed
[create-pull-request] automated change
1 parent 8972f9c commit 6e20a8e

File tree

9 files changed

+126
-11
lines changed

9 files changed

+126
-11
lines changed

tests/testthat/_snaps/bump_version.md

+78-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,86 @@
11
# bump_version() works -- dev
22

3+
Code
4+
bump_version()
5+
Message
6+
> Digesting messages from 3 commits.
7+
v Found 1 NEWS-worthy entry.
8+
9+
-- Updating NEWS --
10+
11+
> Adding new entries to 'NEWS.md'.
12+
13+
-- Updating Version --
14+
15+
v Package version bumped to 0.0.0.9001.
16+
> Added header to 'NEWS.md'.
17+
> Committing changes.
18+
19+
-- Tagging Version --
20+
21+
> Creating tag v0.0.0.9001 with tag message derived from 'NEWS.md'.
22+
! Run `fledge::finalize_version(push = TRUE)`.
23+
24+
---
25+
326
Code
427
bump_version(no_change_behavior = "fail")
528
Condition
6-
Error in `default_commit_range()`:
7-
! unused argument (ref)
29+
Error in `bump_version_impl()`:
30+
x No change since last version.
31+
i Use `no_change_behavior = "bump"` to force a version bump, or `no_change_behavior = "noop"` to do nothing.
32+
33+
---
34+
35+
Code
36+
bump_version(no_change_behavior = "noop")
37+
Message
38+
i No change since last version.
39+
40+
---
41+
42+
Code
43+
bump_version(no_change_behavior = "bump")
44+
Message
45+
> Digesting messages from 1 commits.
46+
i Same as previous version.
47+
48+
-- Updating NEWS --
49+
50+
> Adding new entries to 'NEWS.md'.
51+
52+
-- Updating Version --
53+
54+
v Package version bumped to 0.0.0.9002.
55+
> Added header to 'NEWS.md'.
56+
> Committing changes.
57+
58+
-- Tagging Version --
59+
60+
> Creating tag v0.0.0.9002 with tag message derived from 'NEWS.md'.
61+
! Run `fledge::finalize_version(push = TRUE)`.
62+
63+
# bump_version() works -- not dev
64+
65+
Code
66+
bump_version(which = "major")
67+
Message
68+
> Digesting messages from 3 commits.
69+
v Found 1 NEWS-worthy entry.
70+
71+
-- Updating NEWS --
72+
73+
> Adding new entries to 'NEWS.md'.
74+
75+
-- Updating Version --
76+
77+
v Package version bumped to 1.0.0.
78+
> Added header to 'NEWS.md'.
79+
> Committing changes.
80+
81+
-- Preparing package for CRAN release --
82+
83+
* Convert the change log in 'NEWS.md' to release notes.
884

985
# bump_version() errors informatively for forbidden notifications
1086

Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->
22

3+
# tea 1.0.0
4+
5+
- Add cool bla.
6+
7+
38
# tea 0.0.0.9000
49

510
* Added a `NEWS.md` file to track changes to the package.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->
22

3+
# tea 0.0.0.9001
4+
5+
- Add cool bla.
6+
7+
38
# tea 0.0.0.9000
49

510
* Added a `NEWS.md` file to track changes to the package.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->
22

3+
# tea 0.0.0.9002
4+
5+
- Same as previous version.
6+
7+
8+
# tea 0.0.0.9001
9+
10+
- Add cool bla.
11+
12+
313
# tea 0.0.0.9000
414

515
* Added a `NEWS.md` file to track changes to the package.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->
22

3+
# tea 0.0.0.9001
4+
5+
- Add cool blop.
6+
7+
- Add cool bla.
8+
9+
310
# tea 0.0.0.9000
411

512
* Added a `NEWS.md` file to track changes to the package.

tests/testthat/_snaps/update-news.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@
1717
1818
$news
1919
# A tibble: 1 x 10
20-
start end h2 raw news
21-
<int> <int> <lgl> <chr> <list>
22-
1 3 6 FALSE "# tea 0.0.1 (2023-01-23)\n\n- One.\n" <named list [1]>
23-
section_state title version date nickname
24-
<chr> <chr> <chr> <chr> <chr>
25-
1 keep tea 0.0.1 (2023-01-23) 0.0.1 (2023-01-23) <NA>
20+
start end h2
21+
<int> <int> <lgl>
22+
1 3 6 FALSE
23+
raw
24+
<chr>
25+
1 "# tea 0.0.1 (2023-01-23)\n\n- Added a `NEWS.md` file to track changes to the~
26+
news section_state title version date nickname
27+
<list> <chr> <chr> <chr> <chr> <chr>
28+
1 <named list [1]> keep tea 0.0.1 (2023-01-23) 0.0.1 (2023-~ <NA>
2629
2730
$preamble_in_file
2831
[1] TRUE

tests/testthat/_snaps/update-news/newchangelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
# tea 0.0.0.9001 (2023-03-20)
44

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

tests/testthat/_snaps/update-news/samedev-updated.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
# fledge (development version)
44

5-
- One.
5+
## Bug fixes
6+
7+
- Horrible bug.
8+
9+
## Features
10+
11+
- Neat helper.
12+
- New stuff.
613

714

815
# fledge 0.1.0

tests/testthat/_snaps/update-news/samedev.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
# fledge (development version)
44

5-
- One.
5+
## Features
6+
7+
- New stuff.
68

79

810
# fledge 0.1.0

0 commit comments

Comments
 (0)