Skip to content

Commit 805c603

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
Deterministic output
1 parent 3f89215 commit 805c603

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/notify/notify.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"encoding/json"
77
"fmt"
88
"log/slog"
9+
"sort"
910
"strings"
1011
"time"
1112

@@ -255,6 +256,9 @@ func formatNextActionsInternal(ctx context.Context, nextActions map[string]turn.
255256
// Convert snake_case to space-separated words
256257
actionName := strings.ReplaceAll(actionKind, "_", " ")
257258

259+
// Sort users for deterministic output
260+
sort.Strings(users)
261+
258262
// Format user mentions (will be empty if only _system was assigned)
259263
userMentions := userMapper.FormatUserMentions(ctx, users, owner, domain)
260264

0 commit comments

Comments
 (0)