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: correct create-repository-by-default logic #922

Merged
merged 2 commits into from
Oct 1, 2023

Conversation

JoshuaKGoldberg
Copy link
Owner

PR Checklist

Overview

I remember now why --create-repository existed: if mode is create, then we'll want to attempt creating a new repo by default. So this PR infers a createRepository again in ensureRepositoryExists.

@codecov
Copy link

codecov bot commented Oct 1, 2023

Codecov Report

Merging #922 (8aa4156) into main (ebde1d9) will increase coverage by 0.00%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #922   +/-   ##
=======================================
  Coverage   93.43%   93.44%           
=======================================
  Files          90       90           
  Lines        4873     4880    +7     
  Branches      399      401    +2     
=======================================
+ Hits         4553     4560    +7     
  Misses        319      319           
  Partials        1        1           
Flag Coverage Δ
create 71.90% <12.00%> (-0.07%) ⬇️
initialize 37.60% <12.00%> (-0.02%) ⬇️
migrate 70.76% <12.00%> (-0.07%) ⬇️
unit 68.19% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/shared/options/ensureRepositoryExists.ts 93.33% <100.00%> (+0.47%) ⬆️
src/shared/options/readOptions.ts 92.27% <100.00%> (+0.03%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@JoshuaKGoldberg JoshuaKGoldberg merged commit ef2e348 into main Oct 1, 2023
@JoshuaKGoldberg JoshuaKGoldberg deleted the actually-fix-create-repository branch October 1, 2023 17:48
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

🎉 This is included in version v1.32.0 🎉

The release is available on:

Cheers! 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Remove "Would you like to push the template's tooling up to the repository on GitHub?"
1 participant