Repository navigation
docs(skills/create-pr): infer Linear ticket and skip pre-create confirmation - #501
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesAutomated PR Creation Skill
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
@prisma-next/mongo-runtime
@prisma-next/family-mongo
@prisma-next/sql-runtime
@prisma-next/family-sql
@prisma-next/extension-arktype-json
@prisma-next/extension-cipherstash
@prisma-next/middleware-telemetry
@prisma-next/mongo
@prisma-next/extension-paradedb
@prisma-next/extension-pgvector
@prisma-next/extension-postgis
@prisma-next/postgres
@prisma-next/sql-orm-client
@prisma-next/sqlite
@prisma-next/target-mongo
@prisma-next/adapter-mongo
@prisma-next/driver-mongo
@prisma-next/contract
@prisma-next/utils
@prisma-next/config
@prisma-next/errors
@prisma-next/framework-components
@prisma-next/operations
@prisma-next/ts-render
@prisma-next/contract-authoring
@prisma-next/ids
@prisma-next/psl-parser
@prisma-next/psl-printer
@prisma-next/cli
@prisma-next/emitter
@prisma-next/migration-tools
prisma-next
@prisma-next/vite-plugin-contract-emit
@prisma-next/mongo-codec
@prisma-next/mongo-contract
@prisma-next/mongo-value
@prisma-next/mongo-contract-psl
@prisma-next/mongo-contract-ts
@prisma-next/mongo-emitter
@prisma-next/mongo-schema-ir
@prisma-next/mongo-query-ast
@prisma-next/mongo-orm
@prisma-next/mongo-query-builder
@prisma-next/mongo-lowering
@prisma-next/mongo-wire
@prisma-next/sql-contract
@prisma-next/sql-errors
@prisma-next/sql-operations
@prisma-next/sql-schema-ir
@prisma-next/sql-contract-psl
@prisma-next/sql-contract-ts
@prisma-next/sql-contract-emitter
@prisma-next/sql-lane-query-builder
@prisma-next/sql-relational-core
@prisma-next/sql-builder
@prisma-next/target-postgres
@prisma-next/target-sqlite
@prisma-next/adapter-postgres
@prisma-next/adapter-sqlite
@prisma-next/driver-postgres
@prisma-next/driver-sqlite
commit: |
773ece4 to
938c368
Compare
…eate confirmation Two friction points the previous skill imposed unnecessarily: 1. It asked the user for the Linear ticket URL even when the branch name (tml-NNNN-...) or recent commits clearly named one. Step 2 now resolves the ticket from branch name, conversation, or commit trailers, and only falls back to asking when all three fail. 2. It required showing the title and body to the user for approval before running `gh pr create`. The structure + forbidden-patterns checklist is the quality gate; the user can always edit the PR afterwards via `gh pr edit`. Step 5 now opens the PR directly. Signed-off-by: Will Madden <[email protected]>
938c368 to
7ad14fb
Compare
At a glance
Two confirmation steps removed from the
create-prskill, replaced by inference + direct action:This isn't tied to a Linear ticket — it's a workflow tweak surfaced while opening #500, where both prompts produced friction without value.
Decision
The
create-prskill should be a single-pass workflow whenever the agent has enough context to do the right thing. Two prompts were the main cost:tml-NNNN-…and the slug is embedded in the branch name verbatim. The agent already had the ticket; the prompt was pure overhead.gh pr create. The skill's "Required structure" + "Forbidden / discouraged patterns" sections are the actual quality gate; running them through the agent's own pre-flight check is the right enforcement point. Post-creationgh pr editis a cheap safety net for any wording the user wants to tweak.Don't Doitems 6 and 7 are flipped accordingly — the old "always ask" rules become "infer first; only ask if you genuinely can't" and "open the PR; let the user edit if they want changes".How it fits together
gh pr create.Don't Doitems 6 & 7 — flipped from "don't create the PR without confirming" / "always ask" to "open the PR; don't ask".Behavior changes & evidence
Compatibility / migration / risk
gh pr editescape hatch is real and cheap. Both title and body are editable after creation, so a too-eager push remains recoverable.Follow-ups
None. If the inference logic proves insufficient in practice, we can extend Step 2 with more sources (e.g.
gh pr viewfor branches that already have a draft PR).Alternatives considered
gh pr editis a low-friction post-creation correction path. The prompt added latency without changing outcomes.Don't Dotable.Summary by CodeRabbit
New Features
Chores