Skip to content

Commit c609ee9

Browse files
authored
fix(internal/librarian): add a title prefix (#2082)
Prefix a PR title with `chore`. The 'release init' process now correctly identifies commits from pull requests (PRs) that adhere to the conventional commit message format. This is because the process only uses the commit message, not the PR title, to determine conventionality. Fixes #2079
1 parent 56d59af commit c609ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/librarian/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ func commitAndPush(ctx context.Context, info *commitInfo) error {
372372
return err
373373
}
374374

375-
title := fmt.Sprintf("Librarian %s pull request: %s", info.prType, datetimeNow)
375+
title := fmt.Sprintf("chore: librarian %s pull request: %s", info.prType, datetimeNow)
376376
prBody, err := createPRBody(info)
377377
if err != nil {
378378
return fmt.Errorf("failed to create pull request body: %w", err)

0 commit comments

Comments
 (0)