Skip to content

feat: link to closed issues#67

Open
janisz wants to merge 2 commits intomainfrom
link_closed_issue
Open

feat: link to closed issues#67
janisz wants to merge 2 commits intomainfrom
link_closed_issue

Conversation

@janisz
Copy link
Collaborator

@janisz janisz commented Mar 16, 2026

Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
@janisz janisz requested a review from porridge as a code owner March 16, 2026 15:05
Comment on lines +819 to +822
buildIDText := tc.BuildId
if buildIDText == "" {
buildIDText = " " // Use space for empty values to ensure text field is present, required by the API
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we could create a func spaceIfEmpty(string) or similar, and avoid these kinds of blocks everywhere.


func render(tc j2jTestCase, text string) (string, error) {
tmpl, err := template.New("test").Funcs(map[string]any{"truncate": truncate, "truncateSummary": truncateSummary}).Parse(text)
tmpl, err := template.New("test").Funcs(map[string]interface{}{"truncate": truncate, "truncateSummary": truncateSummary}).Parse(text)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why this change was needed? Isn't it the same these days?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, it's not required

Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Link to existing but closed tickets with the same title

2 participants