diff --git a/apps/server/src/routes/worktree/routes/generate-pr-description.ts b/apps/server/src/routes/worktree/routes/generate-pr-description.ts index 4f42b47ea..4e9e57162 100644 --- a/apps/server/src/routes/worktree/routes/generate-pr-description.ts +++ b/apps/server/src/routes/worktree/routes/generate-pr-description.ts @@ -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`; /** * Wraps an async generator with a timeout. diff --git a/apps/ui/src/components/views/board-view/dialogs/create-pr-dialog.tsx b/apps/ui/src/components/views/board-view/dialogs/create-pr-dialog.tsx index 950fd2f3a..a88b111fa 100644 --- a/apps/ui/src/components/views/board-view/dialogs/create-pr-dialog.tsx +++ b/apps/ui/src/components/views/board-view/dialogs/create-pr-dialog.tsx @@ -491,7 +491,7 @@ export function CreatePRDialog({ return ( - + @@ -565,7 +565,7 @@ export function CreatePRDialog({ ) : ( <> -
+
{worktree.hasChanges && (
- + diff --git a/libs/prompts/src/defaults.ts b/libs/prompts/src/defaults.ts index bcbc6febd..330afe0ce 100644 --- a/libs/prompts/src/defaults.ts +++ b/libs/prompts/src/defaults.ts @@ -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