Skip to content

Commit f97ecfe

Browse files
Ignore commits which can't be build
Everything containing a slash is not a package anyway and just creates noise in the UI.
1 parent c02c5d2 commit f97ecfe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ofborg/src/tasks/eval/nixpkgs.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ fn parse_commit_messages(messages: &[String]) -> Vec<String> {
174174
// Convert "foo: some notes" in to "foo"
175175
line.split_once(':').map(|(pre, _)| pre.trim())
176176
})
177+
.filter(|line| {
178+
// When a prefix contains a slash, it targets a certain file, but not a buildable package.
179+
!line.contains("/")
180+
})
177181
// NOTE: This transforms `{foo,bar}` into `{{foo,bar}}` and `foo,bar` into `{foo,bar}`,
178182
// which allows both the old style (`foo,bar`) and the new style (`{foo,bar}`) to expand to
179183
// `foo` and `bar`.
@@ -228,6 +232,7 @@ mod tests {
228232
Merge pull request #34414 from dotlambda/postfix
229233
foo,bar: something here: yeah
230234
firefox{,-beta}{,-bin}, librewolf: blah blah blah
235+
workflows/eval: should be ignored
231236
"
232237
.lines()
233238
.map(|l| l.to_owned())

0 commit comments

Comments
 (0)