Skip to content

Commit 049e830

Browse files
committed
update unrolled perf builds detection
the perfbot comment has recently changed
1 parent 79db57e commit 049e830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,10 +1205,10 @@ impl Config {
12051205
.lines()
12061206
// lines of table with PR builds
12071207
.filter(|l| l.starts_with("|#"))
1208-
// get the commit link
1209-
.filter_map(|l| l.split('|').nth(2))
1210-
// get the commit sha
1211-
.map(|l| l.split_once('[').unwrap().1.rsplit_once(']').unwrap().0)
1208+
// get the commit link: it's in the 3rd column, i.e. the 4th pipe-split chunk
1209+
.filter_map(|l| l.split('|').nth(3))
1210+
// get the commit sha: the cell has the format "`$sha` ([link]($ci-repo/commit/$sha))"
1211+
.map(|l| l.split_once('`').unwrap().1.rsplit_once('`').unwrap().0)
12121212
.collect::<Vec<_>>();
12131213
let short_sha = builds
12141214
.iter()

0 commit comments

Comments
 (0)