Skip to content

Add customizable commit message instructions in settings#1023

Open
riccardopll wants to merge 3 commits intopingdotgg:mainfrom
riccardopll:riccardopll/custom-git-commit-instructions
Open

Add customizable commit message instructions in settings#1023
riccardopll wants to merge 3 commits intopingdotgg:mainfrom
riccardopll:riccardopll/custom-git-commit-instructions

Conversation

@riccardopll
Copy link

@riccardopll riccardopll commented Mar 13, 2026

What Changed

This PR adds a small setting for customizing auto-generated git commit messages. It introduces a new local app setting, exposes it on the Settings page under Agent Instructions and uses it on the server only when a commit message is being generated automatically.

Why

I like the commit button but I also prefer Conventional Commits, so this felt like a useful feature.

UI Changes

Before:
image
After:
image

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Add customizable commit message instructions to settings and git action generation

  • Adds a new commitMessageInstructions field to AppSettingsSchema, capped at 2,000 characters, and exposes a textarea in the settings page for users to configure it.
  • Threads the instructions from settings through GitActionsControlgitRunStackedActionMutationOptionsrunStackedAction native API → GitManagerCodexTextGeneration, where they are injected as bullet-point rules in the commit message prompt.
  • Extends GitRunStackedActionInput schema to accept and validate the optional commitMessageInstructions field with trimming and max-length enforcement.
  • Behavioral Change: non-empty commit message instructions will alter the subject, body, and branch name output from Codex for all agent-triggered git actions.

Macroscope summarized cd9a57f.

- Add settings UI and persistence for commit message instructions
- Validate and trim instructions in shared contracts and web mutation layer
- Forward instructions through GitManager to Codex prompt generation with tests
- Delete `.node-version`
- Remove `scripts/rebase-head-onto-upstream.sh` maintenance script
@coderabbitai
Copy link

coderabbitai bot commented Mar 13, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 15582fa8-ecb4-4662-8eb8-03a02f3696a6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

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.

Tip

CodeRabbit can generate a title for your PR based on the changes.

Add @coderabbitai placeholder anywhere in the title of your PR and CodeRabbit will replace it with a title based on the changes in the PR. You can change the placeholder by changing the reviews.auto_title_placeholder setting.

@github-actions github-actions bot added size:L 100-499 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant