lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Customize create pr prefilled name

Open Mach1212 opened this issue 5 months ago • 3 comments

Is your feature request related to a problem? Please describe. Currently when you create a pr, it takes the branch name, capitalizes the first letter, and replaces underscores with spaces(At least thats what it does in my usecase).   Describe the solution you'd like I would like the prefilled name to be to keep the branch name, unmodified.

Describe alternatives you've considered Looking in Config.md for a template variable.

Additional context na

Mach1212 avatar Jun 18 '25 19:06 Mach1212

Unless I'm missing something, lazygit has no way of influencing this. It is the hosting service that comes up with the PR title, nothing we can do about it.

Do let me know if I'm wrong here.

stefanhaller avatar Jun 19 '25 16:06 stefanhaller

Hey sorry for the delay, here is the link to the customizable url parameters https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/using-query-parameters-to-create-a-pull-request

specifically the title url query param.

Huh you can customize a lot! like body or labels. I see lazygit supports some variables like {{branchName}}. Is there a doc of them? would be cool to have that kind of customization, say custom labels for a {{idkRepoName}}. or autofill template's for different repos.

Mach1212 avatar Jul 17 '25 19:07 Mach1212

bump

Mach1212 avatar Nov 19 '25 00:11 Mach1212