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

chore: bring in updates for create's interactive CLI #1781

Merged
merged 28 commits into from
Dec 24, 2024
Merged

Conversation

JoshuaKGoldberg
Copy link
Owner

@JoshuaKGoldberg JoshuaKGoldberg commented Dec 19, 2024

PR Checklist

Overview

Applies three main areas of change:

  • Factors in a directory string for option defaults so they can work outside of the cwd
    • Adds a fallback of gh config get user -h github.com for options.owner, finally removing the need to manually re-type your own owner always 🥳
  • Adds .describe("...") to their Zod schemas so they can be nicely described in prompts (and, eventually, auto-generated docs)
  • Brings in the new suggestions Indirect Creations to generate the nice "be sure to..." notice upon completion

Also removes the --offline from finalizeDependencies.

💖

Copy link
Owner Author

Choose a reason for hiding this comment

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

TODO: I'll split this out into its own first-party create package.

@@ -14,7 +14,6 @@ export const blockRepositorySettings = base.createBlock({
allow_auto_merge: true,
allow_rebase_merge: false,
allow_squash_merge: true,
default_branch: "main",
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is the only part of the API that can't run on an empty repository at the moment. I don't mind removing it for now to simplify things. The new default branch in repositories is main now for a while anyway.

"-D",
);
}

await execaCommand(`pnpm dedupe --offline`);
Copy link
Owner Author

Choose a reason for hiding this comment

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

I don't know why these errors are happening in CI 😞:

  \u2009ERR_PNPM_NO_OFFLINE_META\u2009 Failed to resolve @types/[email protected] in package mirror /home/runner/.cache/pnpm/metadata-v1.3/registry.npmjs.org/@types/git-url-parse.json

Copy link
Owner Author

Choose a reason for hiding this comment

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

Aha!

> husky

.git can't be found

It's that whatever is running scripts is probably not working in the right directory. Ha.

@JoshuaKGoldberg JoshuaKGoldberg merged commit 3b082a9 into main Dec 24, 2024
14 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the create-cli branch December 24, 2024 06:40
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.

🛠 Tooling: Adopt options defaults to match create's interactive CLI
1 participant