Skip to content

Comments

Improve pull request prompt and generation handling#800

Merged
gsxdsm merged 2 commits intoAutoMaker-Org:v0.15.0rcfrom
gsxdsm:fix/improve-pull-request-prompt
Feb 22, 2026
Merged

Improve pull request prompt and generation handling#800
gsxdsm merged 2 commits intoAutoMaker-Org:v0.15.0rcfrom
gsxdsm:fix/improve-pull-request-prompt

Conversation

@gsxdsm
Copy link
Collaborator

@gsxdsm gsxdsm commented Feb 22, 2026

Summary

  • Improve pull request prompt

Summary by CodeRabbit

  • Improvements
    • PR descriptions now exclude build artifacts, git-ignored files, and other irrelevant outputs for clearer summaries.
    • Dialog layout updated for better vertical flow, scroll behavior, and consistent footer spacing.
    • Commit message generation refined to focus on meaningful, tracked source changes and ignore irrelevant files.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @gsxdsm, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the automated generation of pull request descriptions and commit messages by introducing explicit rules to disregard gitignored files and concentrate on meaningful code changes. Concurrently, it enhances the user interface of the pull request creation dialog, making it more responsive and user-friendly, especially when dealing with extensive content.

Highlights

  • PR Description Generation: Enhanced the prompt for generating pull request descriptions to explicitly exclude gitignored files and focus solely on relevant source code changes, ensuring more concise and accurate summaries.
  • UI Layout Improvement: Updated the CreatePRDialog component to ensure its content area is scrollable and the footer remains fixed, significantly improving user experience for longer descriptions or forms.
  • Commit Message Generation: Modified the default prompt for commit message generation to ignore changes in gitignored files, aligning with best practices for version control and focusing on meaningful code changes.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • apps/server/src/routes/worktree/routes/generate-pr-description.ts
    • Added rules to the PR description generation prompt to exclude gitignored files (e.g., node_modules, dist, .env) and focus only on meaningful, git-tracked source code changes.
  • apps/ui/src/components/views/board-view/dialogs/create-pr-dialog.tsx
    • Applied 'flex flex-col' to DialogContent for better layout control.
    • Added 'overflow-y-auto min-h-0 flex-1' to the main content div to enable vertical scrolling and flexible sizing.
    • Styled the DialogFooter with 'flex-shrink-0 pt-2 border-t' to keep it fixed at the bottom and visually separated.
  • libs/prompts/src/defaults.ts
    • Incorporated a rule into the default commit message generation prompt to ignore changes in gitignored files.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link

coderabbitai bot commented Feb 22, 2026

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

Walkthrough

Updated documentation rules to exclude git-ignored files from PR descriptions and commit-message prompts; small UI changes to the PR creation dialog add flex layout, enable scrolling for overflow, and adjust footer spacing.

Changes

Cohort / File(s) Summary
PR Description & Commit Message Rules
apps/server/src/routes/worktree/routes/generate-pr-description.ts, libs/prompts/src/defaults.ts
Added guidance to exclude git-ignored files (e.g., node_modules, dist, build outputs, lock files, .env, generated files) and focus on meaningful source changes tracked by git. Changes are documentation/system-prompt updates only.
Dialog UI Styling
apps/ui/src/components/views/board-view/dialogs/create-pr-dialog.tsx
Applied flex/flex-col to dialog content, added overflow-y-auto min-h-0 flex-1 for scrollable content, and updated DialogFooter with shrink-0 pt-2 border-t for consistent footer sizing and spacing.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

cleanup

Poem

🐰 I nibble through the changelog bright,

ignoring builds and hidden bytes,
showing only code that counts,
dialog scrolls and footer mounts,
a tidy patch beneath moonlight.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main objective of the PR, which focuses on improving pull request prompt and generation handling across multiple files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request improves the prompts for generating pull request descriptions and commit messages by instructing the AI to ignore gitignored and irrelevant files. It also refactors the "Create PR" dialog to better handle long content by making the main area scrollable.

The prompt updates are a good improvement. I've suggested a small refinement in generate-pr-description.ts to combine the new rules for better consistency and conciseness, similar to the change made in defaults.ts.

The UI changes in the CreatePRDialog are well-implemented and correctly use flexbox properties to create a robust and scrollable layout.

Overall, these are solid improvements.

Comment on lines +57 to +58
- 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`;
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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/ui/src/components/views/board-view/dialogs/create-pr-dialog.tsx`:
- Line 742: The DialogFooter's className uses the removed Tailwind v4 utility
"flex-shrink-0" which produces no styles; change that class to "shrink-0" in the
DialogFooter component (look for DialogFooter className="flex-shrink-0 pt-2
border-t") so the footer will not shrink unexpectedly under Tailwind v4.1.18 and
tailwind-merge@3.4.0.

…og.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@gsxdsm gsxdsm merged commit 629fd24 into AutoMaker-Org:v0.15.0rc Feb 22, 2026
6 checks passed
@gsxdsm gsxdsm deleted the fix/improve-pull-request-prompt branch February 22, 2026 08:27
gsxdsm added a commit to gsxdsm/automaker that referenced this pull request Feb 23, 2026
* Changes from fix/improve-pull-request-prompt

* Update apps/ui/src/components/views/board-view/dialogs/create-pr-dialog.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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.

1 participant