Skip to content

fix(init): describe --repo as an existing repository domain - #290

Open
angeloashmore wants to merge 1 commit into
mainfrom
claude/github-issue-review-tw2l2a
Open

fix(init): describe --repo as an existing repository domain#290
angeloashmore wants to merge 1 commit into
mainfrom
claude/github-issue-review-tw2l2a

Conversation

@angeloashmore

@angeloashmore angeloashmore commented Sep 5, 2026

Copy link
Copy Markdown
Member

Resolves: #276

Description

The --repo option was described as "Repository name". It takes the domain of a repository that already exists, not a name you choose. An agent read the old wording as a name to invent and asked the user for one.

Checklist

  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

$ prismic init --help
...
OPTIONS
  -r, --repo string   Domain of an existing repository to connect to

How to QA 1

Run the evals in a container or a disposable VM. They run an agent with bypassPermissions against a real account.

$ node --run build
$ node dist/index.mjs init --help
$ EVAL_TRIALS=5 PRISMIC_ALLOW_EVALS=true node --run evals -- \
    evals/initialize-projects.eval.ts evals/check-before-acting.eval.ts

🤖 Generated with Claude Code

https://claude.ai/code/session_01EDG5bb3gLsNgvJZR3bANY3


Note

Low Risk
Help-text-only change with no runtime or CLI behavior impact.

Overview
Updates the prismic init --help text for -r, --repo from "Repository name" to "Domain of an existing repository to connect to", so users and tooling do not treat the flag as a new name to invent when connecting to an existing Prismic repo.

Reviewed by Cursor Bugbot for commit f2d13e0. Bugbot is set up for automated code reviews on this repo. Configure here.

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

@angeloashmore
angeloashmore force-pushed the claude/github-issue-review-tw2l2a branch from ffd556f to a7195c0 Compare September 5, 2026 04:01
@angeloashmore angeloashmore changed the title fix(init): say that init needs no confirmation fix(init): describe --repo as an existing repository domain Sep 5, 2026
Comment thread evals/it.ts Outdated
@angeloashmore
angeloashmore force-pushed the claude/github-issue-review-tw2l2a branch from a7195c0 to 1ef4978 Compare September 5, 2026 04:15
The option was described as "Repository name". It takes the domain of a
repository that already exists, not a name you choose. A reader could
take it as a name to invent.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EDG5bb3gLsNgvJZR3bANY3
@angeloashmore
angeloashmore force-pushed the claude/github-issue-review-tw2l2a branch from 1ef4978 to f2d13e0 Compare September 8, 2026 13:49
@angeloashmore
angeloashmore marked this pull request as ready for review September 8, 2026 13:53
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.

evals: agent stops before it runs prismic init

3 participants