Skip to content

git branching workflow for use_release_issue()? #1884

Open

Description

@kevinushey

Using rstudio/renv#1634 as a template, I wonder if we should also suggest starting with something like:

  • Create and switch to release branch release/<version>

Then, follow the regular steps. After building and submitting to CRAN, if the submission is accepted, we can then:

  • Merge release branch to main

And then run the regular steps. Does that make sense?

Activity

  1. gadenbuie commented on Aug 10, 2023

    @gadenbuie
    Contributor

    This is also what we do for Shiny for R, although we follow the branch naming convention of rc-vX.Y.Z. I personally really like this workflow.

    One thing to watch out for is that you have to merge the release branch into the main branch in a way that preserves the git history if you want to tag the commit that was sent to CRAN (i.e. use a merge commit). If you're used to a squash merge workflow or don't mind tagging a different commit than the exact one sent to CRAN, you might need to remove the CRAN-SUBMISSION file created by submit_cran() before calling use_github_release().

  2. gadenbuie commented on Aug 17, 2023

    @gadenbuie
    Contributor

    A common thread between this and #1887 in my work is that I would appreciate the ability to customize the release issue in a more detailed way. Currently, release_bullets() adds steps to the end of "Prepare for release", but a branching workflow or a workflow that requires additional checks might benefit from customizing where the todo items appear in the list.

    One option would be to allow release_bullets() to return a named list such that items can be added to specific places in the release checklist, e.g. "prepare-start", "pre-check", "post-check", etc. This could be backwards compatible in that an unnamed list would be assumed to be "prepare-end" (at the end of the prepare section).

    If there's interest in this approach, I'd be happy to work up a PR.

  3. hadley commented on Nov 3, 2023

    @hadley
    Member

    I'd be happy to make this the default workflow, assuming we can automate the steps sufficiently that I can follow the checklist without having to think about it. Maybe it's sufficient to add pr_init(), pr_push(), and pr_finish() in the appropriate places? I think it would be useful with a concrete proposal there.

    (@gadenbuie we're tracking the issue of adding bullets anywhere in #1818, but I do think it's important to standardise as much as possible on one process)

    cc @DavisVaughan since I know this is something he has also asked for, and @thomasp85 since I think we do generally use a branch for ggplot2 releases.

  4. added
    feature
    on Nov 3, 2023
  5. DavisVaughan commented on Nov 3, 2023

    @DavisVaughan
    Member

    @hadley I have done that actually. It is probably a little out of date now but I did it here business-science/tibbletime#104, so we could maybe pull that over?

  6. hadley commented on Nov 3, 2023

    @hadley
    Member

    Yeah, that seems like a good start. Want to do a PR? (I'd leave the change in revdeps for now since we should discuss that elsewhere)

  7. hadley commented on Oct 7, 2024

    @hadley
    Member

    More discussion in #1946

  8. added this to the Backlog milestone on Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurerelease 🛫

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions