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 Feb 18, 2024
1 parent 97cb0b5 commit 26d1ef8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 186 deletions.
173 changes: 2 additions & 171 deletions tests/testthat/_snaps/auto.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,76 +17,13 @@
Error in `gert::git_branch_create()`:
! Failed to find git reference 'blop'

# init_release() works

Code
init_release()
Output
+------------------+
| |
| init-release |
| |
+------------------+
Message
-- 1. Creating a release branch and getting ready ------------------------------
> Creating branch cran-0.0.1.
> Switching to branch cran-0.0.1.
> Committing changes.
-- 2. Opening Pull Request for release branch ----------------------------------
> Pushing cran-0.0.1 to remote origin.
> Opening draft pull request with contents from 'cran-comments.md'.
-- 3. User Action Items --------------------------------------------------------
* Run `devtools::check_win_devel()`.
* Run `rhub::check_for_cran()`.
* Run `urlchecker::url_update()`.
* Check all items in 'cran-comments.md'.
* Review 'NEWS.md'.
* Run `fledge::release()`.
Output
NULL

# init_release() -- force

Code
init_release()
Condition
Error in `check_release_branch()`:
x The branch "cran-0.0.1" already exists.
i Do you need `init_release(force = TRUE)`?

---

Code
init_release(force = TRUE)
Output
+------------------+
| |
| init-release |
| |
+------------------+
Message
-- 1. Creating a release branch and getting ready ------------------------------
> Creating branch cran-0.0.1.
> Switching to branch cran-0.0.1.
> Committing changes.
-- 2. Opening Pull Request for release branch ----------------------------------
> Pushing cran-0.0.1 to remote origin.
> Opening draft pull request with contents from 'cran-comments.md'.
-- 3. User Action Items --------------------------------------------------------
* Run `devtools::check_win_devel()`.
* Run `rhub::check_for_cran()`.
* Run `urlchecker::url_update()`.
* Check all items in 'cran-comments.md'.
* Review 'NEWS.md'.
* Run `fledge::release()`.
Output
NULL
Error in `check_release()`:
! Local main branch ahead by 1 commit.

# full cycle

Expand Down Expand Up @@ -198,49 +135,6 @@
Output
NULL

---

Code
release()
Message
> Checking presence and scope of `GITHUB_PAT`.
> Pushing cran-0.1.0.
-- Tagging Version --
> Creating tag v0.1.0 with tag message derived from 'NEWS.md'.
> Force-pushing tag v0.1.0.
i Building
Output
-- R CMD build -----------------------------------------------------------------
* checking for file DESCRIPTION
* preparing 'tea'
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building 'tea_0.0.1.tar.gz'
Message
i Submitting file: 'tea_0.0.1.tar.gz'
i File size: "some hundreds of bytes"
i Uploading package & comments
Not submitting for real o:-)
> Switching to branch main.
> Pulling main.
Resetting main to origin/main
> Merging release branch.
i Check your inbox for a confirmation e-mail from CRAN.
> Copy the URL to the clipboard.
Not submitting for real o:-)

---

Code
post_release()
Message
> Creating GitHub release "v0.1.0".
> Omitting in test.

# release abandon

Code
Expand Down Expand Up @@ -294,66 +188,3 @@
Output
NULL

# full cycle, add more to main

Code
post_release()
Message
> Omitting in test.

---

Code
post_release()
Message
> Omitting in test.

---

Code
post_release()
Message
> Omitting in test.

---

Code
post_release()
Message
> Omitting in test.

---

Code
post_release()
Message
> Omitting in test.

---

Code
post_release()
Message
> Omitting in test.

# full cycle, add more to main NO PUSH

Code
post_release()
Message
> Omitting in test.

---

Code
post_release()
Message
> Omitting in test.

---

Code
post_release()
Message
> Omitting in test.

1 change: 0 additions & 1 deletion tests/testthat/_snaps/bump_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
v Package version bumped to 1.0.0.
> Added header to 'NEWS.md'.
> Committing changes.
-- Preparing package for CRAN release --
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.
14 changes: 5 additions & 9 deletions tests/testthat/_snaps/demo/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,14 +530,15 @@ fledge::bump_version("patch")
##
## v Package version bumped to 0.0.1.
## > Added header to 'NEWS.md'.
## > Resetting to previous commit.
## > Committing changes.
##
## -- Preparing package for CRAN release --
##
## * Convert the change log in 'NEWS.md' to release notes.
```

This updates the version of our package to 0.0.1.
This updates the version of our package to 0.0.0.9002.

### Generate release notes

Expand All @@ -549,11 +550,6 @@ news <- readLines("NEWS.md")
cat(news, sep = "\n")
## <!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->
##
## # tea 0.0.1
##
## - Same as previous version.
##
##
## # tea 0.0.0.9002
##
## - New bowl_of_tea() function makes it easy to drink a bowl of tea.
Expand Down Expand Up @@ -593,7 +589,7 @@ fledge::tag_version()
##
## -- Tagging Version --
##
## > Creating tag v0.0.1 with tag message derived from 'NEWS.md'.
## i Tag v0.0.0.9002 exists and points to the current commit.
show_tags(remote_url)
## # A tibble: 2 x 2
## name ref
Expand Down Expand Up @@ -626,13 +622,13 @@ fledge::bump_version()
##
## -- Updating Version --
##
## v Package version bumped to 0.0.1.9000.
## v Package version bumped to 0.0.0.9003.
## > Added header to 'NEWS.md'.
## > Committing changes.
##
## -- Tagging Version --
##
## > Creating tag v0.0.1.9000 with tag message derived from 'NEWS.md'.
## > Creating tag v0.0.0.9003 with tag message derived from 'NEWS.md'.
## ! Run `fledge::finalize_version(push = TRUE)`.
news <- readLines("NEWS.md")
```
Expand Down

0 comments on commit 26d1ef8

Please sign in to comment.