Skip to content

Commit 5ebaeb7

Browse files
authored
Post more than one link to slack
1 parent 75f3f28 commit 5ebaeb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

find_flaky_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ def print_for_slack(occurrences: List[Occurrence], state: AppState):
158158
count = len(occrs)
159159
content += f"{count}x `{nice_path}`"
160160
occrs.sort(key=lambda o: o.commit.timestamp, reverse=True)
161-
most_recent_occr = occrs[0]
162-
content += f" <{most_recent_occr.check_url}|link>"
161+
recent_occrs = occrs[:10]
162+
content += " ".join([f"<{occr.check_url}|[{i+1}]>" for i, occr in enumerate(recent_occrs)])
163163
content += '\\n'
164164

165165
header = render_msg_header(state)

0 commit comments

Comments
 (0)