Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use pkg version from open PR, not from CRAN page #662

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

maelle
Copy link
Member

@maelle maelle commented Apr 3, 2023

Fix #661

In hindsight, that was not good logic.

Now when that function runs, it acts if there's an open "CRAN release" PR, and uses the version from that PR title.

@maelle maelle requested a review from krlmlr April 3, 2023 12:46
@maelle maelle mentioned this pull request Apr 3, 2023
3 tasks
Comment on lines 458 to 462
title = sprintf(
"CRAN release v%s",
"%s%s",
cran_release_pr_title(),
strsplit(gert::git_branch(), "cran-")[[1]][2]
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paste0() or glue()?

@krlmlr krlmlr merged commit 6752b27 into main Apr 3, 2023
@krlmlr krlmlr deleted the fix-auto-release branch April 3, 2023 13:29
@krlmlr
Copy link
Contributor

krlmlr commented Apr 3, 2023

Thanks! Going for the branch name would be a bit safer, but this is good enough for now.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

automatic release should read package version from release branch
2 participants