fix(cmd/bd): label created_by as 'Created by:' instead of 'Owner:'

The text view rendered issue.CreatedBy under an "Owner:" label, but a
distinct Owner field (a git author email) also exists on types.Issue
with a different value. Relabel to avoid conflating the two.

be-ss66
This commit is contained in:
Jim Wordelman 2026-08-15 09:23:54 -07:00
commit 0929476954

View file

@ -79,16 +79,16 @@ func formatIssueHeader(issue *types.Issue) string {
}
// formatIssueMetadata returns the metadata line(s) with grouped info
// Format: Owner: user · Type: task
// Format: Created by: user · Type: task
//
// Created: 2026-01-06 · Updated: 2026-01-08
func formatIssueMetadata(issue *types.Issue) string {
var lines []string
// Line 1: Owner/Assignee · Type
// Line 1: Created by/Assignee · Type
metaParts := []string{}
if issue.CreatedBy != "" {
metaParts = append(metaParts, fmt.Sprintf("Owner: %s", issue.CreatedBy))
metaParts = append(metaParts, fmt.Sprintf("Created by: %s", issue.CreatedBy))
}
if issue.Assignee != "" {
metaParts = append(metaParts, fmt.Sprintf("Assignee: %s", issue.Assignee))