Преглед изворни кода

include the rust-lang/reference

Niko Matsakis пре 4 година
родитељ
комит
27c192dabd
2 измењених фајлова са 39 додато и 1 уклоњено
  1. 29 0
      src/agenda.rs
  2. 10 1
      templates/lang_agenda.tt

+ 29 - 0
src/agenda.rs

@@ -527,6 +527,16 @@ pub fn lang<'a>() -> Box<dyn Action> {
         },
     });
 
+    queries.push(QueryMap {
+        name: "scheduled_meetings",
+        query: github::Query {
+            kind: github::QueryKind::List,
+            filters: vec![("state", "open"), ("is", "issue")],
+            include_labels: vec!["meeting-proposal", "meeting-scheduled"],
+            exclude_labels: vec![],
+        },
+    });
+
     actions.push(Query {
         repo: "rust-lang/lang-team",
         queries,
@@ -590,6 +600,25 @@ pub fn lang<'a>() -> Box<dyn Action> {
         queries,
     });
 
+    let mut queries = Vec::new();
+
+    // https://github.com/rust-lang/reference/labels/I-nominated
+    queries.push(QueryMap {
+        name: "nominated_reference_issues",
+        query: github::Query {
+            kind: github::QueryKind::List,
+            filters: vec![("state", "open")],
+            include_labels: vec!["I-nominated"],
+            exclude_labels: vec![],
+        },
+    });
+
+    actions.push(Query {
+        repo: "rust-lang/reference",
+        queries,
+    });
+
+
     Box::new(Step {
         name: "lang_agenda",
         actions,

+ 10 - 1
templates/lang_agenda.tt

@@ -1,4 +1,5 @@
 {% import "_issues_heading.tt" as issues_heading %}
+{% import "_issues.tt" as issues %}
 ---
 title: Triage meeting DATE
 tags: triage-meeting
@@ -18,6 +19,10 @@ tags: triage-meeting
 * Action item scribe:
 * Note-taker:
 
+## Scheduled meetings
+
+{{-issues::render(issues=scheduled_meetings, indent="", empty="No pending proposals this time.")}}
+
 ## Action item review
 
 * [Action items list](https://hackmd.io/gstfhtXYTHa3Jv-P_2RK7A)
@@ -34,6 +39,10 @@ tags: triage-meeting
 
 {{-issues_heading::render(issues=p_high_issues, empty="No P-high issues this time.")}}
 
+## Nominated PRs and issues on rust-lang/reference
+
+{{-issues_heading::render(issues=nominated_reference_issues, empty="No nominated items this time.")}}
+
 ## Nominated PRs and issues on rust-lang/rust
 
-{{-issues_heading::render(issues=nominated_prs_issues, empty="No nominated PRs this time.")}}
+{{-issues_heading::render(issues=nominated_prs_issues, empty="No nominated items this time.")}}