Skip to content

Commit

Permalink
add note
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhuravlev committed May 23, 2024
1 parent eac8999 commit 9631562
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/gt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ func cmdHookExecCommitMsg(ctx context.Context, c *cli.Command, m *repomanager.Ma
return fmt.Errorf("cannot read commit-msg: %w", err)
}

// TODO(zhuravlev): implement a different policies that can be configured through config file for this project.
commitMessage := fmt.Sprintf("%s %s", branch, string(commitBuf))
if err := os.WriteFile(commitMsgFilename, []byte(commitMessage), 0644); err != nil {
return fmt.Errorf("cannot write commit-msg: %w", err)
Expand Down

0 comments on commit 9631562

Please sign in to comment.