Skip to content

code_review: include the commit message in the review prompt - #6490

Open
padenot wants to merge 1 commit into
mozilla:masterfrom
padenot:review-commit-message-prompt
Open

code_review: include the commit message in the review prompt#6490
padenot wants to merge 1 commit into
mozilla:masterfrom
padenot:review-commit-message-prompt

Conversation

@padenot

@padenot padenot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

The agent only ever saw an LLM-generated patch summary, never the author's actual title/description, so it couldn't flag unclear or misleading commit messages, or cross-check the description against the diff. Add the verbatim commit message as its own prompt section, and instruct the agent to compare it against the diff and flag commit-message issues alongside code issues.

This quite important for us, since we spend quite some time doing code archeology. Besides, an incorrect commit message can mislead or confused the (human) reviewer, and we'd like to catch this early.

The agent only ever saw an LLM-generated patch summary, never the
author's actual title/description — so it couldn't flag unclear or
misleading commit messages, or cross-check the description against
the diff. Add the verbatim commit message as its own prompt section,
and instruct the agent to compare it against the diff and flag
commit-message issues alongside code issues.
@padenot
padenot requested a review from a team as a code owner August 3, 2026 13:21
Comment thread bugbug/tools/code_review/prompts.py
Comment thread bugbug/tools/code_review/agent.py
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.

3 participants