You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/agenda-generator/src/generator.rs
+37-9Lines changed: 37 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ use color_eyre::{
4
4
Section,SectionExt,
5
5
};
6
6
use itertools::Itertools;
7
+
use rand::{seq::SliceRandom, thread_rng};
7
8
use reqwest::header::{AUTHORIZATION,USER_AGENT};
8
9
use serde::de::{DeserializeOwned,Deserializer};
9
10
use serde::Deserialize;
@@ -77,7 +78,7 @@ impl Generator {
77
78
.repo("rust-lang/rust")
78
79
.write(&mutself)?;
79
80
80
-
GithubQuery::new("new change proposal")
81
+
let new_proposals = GithubQuery::new("new change proposal")
81
82
.labels(&["api-change-proposal"])
82
83
.repo("rust-lang/libs-team")
83
84
.sort(Sort::Newest)
@@ -89,6 +90,8 @@ impl Generator {
89
90
.repo("rust-lang/libs-team")
90
91
.sort(Sort::LeastRecentlyUpdated)
91
92
.take(5)
93
+
.skip(new_proposals.iter())
94
+
.shuffle(true)
92
95
.write(&mutself)?;
93
96
94
97
writeln!(&mutself.agenda,"_Generated by [fully-automatic-rust-libs-team-triage-meeting-agenda-generator](https://github.com/rust-lang/libs-team/tree/main/tools/agenda-generator)_")?;
0 commit comments