Skip to content

Commit affe0b3

Browse files
authored
Merge pull request #9474 from gitbutlerapp/improve-branch-name-guidance
Add more indications about the branch name differentiation
2 parents b935042 + 5e59df7 commit affe0b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/but-action/src/generate.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,13 @@ pub async fn branch_name(
105105
"Generate a concise and descriptive branch name based on the provided commit messages.
106106
Keep the branch name short, ideally under 50 characters. Only user lowercase letters, numbers, and hyphens.
107107
Don't use other special characters or spaces.
108+
108109
<important_notes>
109110
The branch name should reflect the main content of the commit messages and, if available, change diffs.
110111
Try to make the branch name unique and noticeably different from existing branch names.
112+
In order to make it noticeably different, use a different first word for the branh name.
111113
Do not use any of the existing branch names.
114+
112115
</important_notes>
113116
114117
<exisiting_branch_names>

0 commit comments

Comments
 (0)