Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ Rules:
- Focus on the user-facing impact when possible
- If there are breaking changes, mention them prominently
- The diff may include both committed changes and uncommitted working directory changes. Treat all changes as part of the PR since uncommitted changes will be committed when the PR is created
- Do NOT distinguish between committed and uncommitted changes in the output - describe all changes as a unified set of PR changes`;
- Do NOT distinguish between committed and uncommitted changes in the output - describe all changes as a unified set of PR changes
- EXCLUDE any files that are gitignored (e.g., node_modules, dist, build, .env files, lock files, generated files, binary artifacts, coverage reports, cache directories). These should not be mentioned in the description even if they appear in the diff
- Focus only on meaningful source code changes that are tracked by git and relevant to reviewers`;
Comment on lines +57 to +58
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For consistency with the changes in libs/prompts/src/defaults.ts, consider combining these two rules into a single, more concise instruction. This also improves prompt efficiency.

For example:

- Ignore changes to gitignored files (e.g., node_modules, dist, build, .env files, lock files, generated files, binary artifacts, coverage reports, cache directories). Focus only on meaningful source code changes that are tracked by git and relevant to reviewers.


/**
* Wraps an async generator with a timeout.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export function CreatePRDialog({

return (
<Dialog open={open} onOpenChange={handleClose}>
<DialogContent className="sm:max-w-[550px]">
<DialogContent className="sm:max-w-[550px] flex flex-col">
<DialogHeader>
<DialogTitle className="flex items-center gap-2">
<GitPullRequest className="w-5 h-5" />
Expand Down Expand Up @@ -565,7 +565,7 @@ export function CreatePRDialog({
</div>
) : (
<>
<div className="grid gap-4 py-4">
<div className="grid gap-4 py-4 overflow-y-auto min-h-0 flex-1">
{worktree.hasChanges && (
<div className="grid gap-2">
<Label htmlFor="commit-message">
Expand Down Expand Up @@ -739,7 +739,7 @@ export function CreatePRDialog({
{error && <p className="text-sm text-destructive">{error}</p>}
</div>

<DialogFooter>
<DialogFooter className="shrink-0 pt-2 border-t">
<Button variant="ghost" onClick={handleClose} disabled={isLoading}>
Cancel
</Button>
Expand Down
1 change: 1 addition & 0 deletions libs/prompts/src/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ Rules:
- Focus on WHAT changed and WHY (if clear from the diff), not HOW
- No quotes, backticks, or extra formatting
- If there are multiple changes, provide a brief summary on the first line
- Ignore changes to gitignored files (e.g., node_modules, dist, build, .env files, lock files, generated files, binary artifacts, coverage reports, cache directories). Focus only on meaningful source code changes that are tracked by git

Examples:
- feat: Add dark mode toggle to settings
Expand Down