Skip to content

Instantly share code, notes, and snippets.

@lhotari
Created January 16, 2025 07:57
Using Claude to suggest improvements to PR title and description

Hint: using ChatGPT or some other LLM could help provide better names for PRs. LLMs are also useful in fixing grammar mistakes.

One way to pass the PR details to LLM is to append .patch to the url, for example https://github.com/apache/pulsar/pull/23853.patch and then store this in a file that is passed to an LLM. Also store the output of https://api.github.com/repos/apache/pulsar/pulls/23853 and pass that in a file (23853.json). (Alternative is to print current PR page to PDF and also pass that.) In the prompt "please provide a better title and description for this PR with fixed grammar and improved clarity. return the result in downloadable markdown format.".

Here's an example from Claude: image

@lhotari
Copy link
Author

lhotari commented Jan 22, 2025

https://www.deepseek.com/ is a good alternative for Claude for this use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment