|
@@ -1,5 +1,6 @@
|
|
|
use crate::actions::{Action, Query, QueryKind, QueryMap, Step};
|
|
|
use crate::github;
|
|
|
+use std::sync::Arc;
|
|
|
|
|
|
pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
Box::new(Step {
|
|
@@ -12,7 +13,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "mcp_new_not_seconded",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["major-change", "to-announce"],
|
|
|
exclude_labels: vec![
|
|
@@ -28,7 +29,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "mcp_old_not_seconded",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["major-change"],
|
|
|
exclude_labels: vec![
|
|
@@ -44,7 +45,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "in_pre_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["proposed-final-comment-period"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
@@ -53,7 +54,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "in_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["final-comment-period"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
@@ -62,7 +63,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "mcp_accepted",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "all")],
|
|
|
include_labels: vec!["major-change-accepted", "to-announce"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
@@ -71,7 +72,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "fcp_finished",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "all")],
|
|
|
include_labels: vec![
|
|
|
"finished-final-comment-period",
|
|
@@ -89,7 +90,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "in_pre_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["proposed-final-comment-period", "T-compiler"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
@@ -98,7 +99,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "in_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["final-comment-period", "T-compiler"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
@@ -107,7 +108,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "fcp_finished",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "all")],
|
|
|
include_labels: vec![
|
|
|
"finished-final-comment-period",
|
|
@@ -125,7 +126,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "in_pre_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["proposed-final-comment-period"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
@@ -134,7 +135,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "in_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["final-comment-period"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
@@ -143,7 +144,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "fcp_finished",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "all")],
|
|
|
include_labels: vec![
|
|
|
"finished-final-comment-period",
|
|
@@ -162,7 +163,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "beta_nominated_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![],
|
|
|
include_labels: vec!["beta-nominated", "T-compiler"],
|
|
|
exclude_labels: vec!["beta-accepted"],
|
|
@@ -171,7 +172,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "beta_nominated_t_rustdoc",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![],
|
|
|
include_labels: vec!["beta-nominated", "T-rustdoc"],
|
|
|
exclude_labels: vec!["beta-accepted"],
|
|
@@ -181,7 +182,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "stable_nominated_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![],
|
|
|
include_labels: vec!["stable-nominated", "T-compiler"],
|
|
|
exclude_labels: vec!["stable-accepted"],
|
|
@@ -190,7 +191,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "stable_nominated_t_rustdoc",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![],
|
|
|
include_labels: vec!["stable-nominated", "T-rustdoc"],
|
|
|
exclude_labels: vec!["stable-accepted"],
|
|
@@ -200,7 +201,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "prs_waiting_on_team_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["S-waiting-on-team", "T-compiler"],
|
|
|
exclude_labels: vec![],
|
|
@@ -210,7 +211,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_p_critical",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-compiler", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
@@ -219,7 +220,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_unassigned_p_critical",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("no", "assignee")],
|
|
|
include_labels: vec!["T-compiler", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
@@ -228,7 +229,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_p_high",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-compiler", "P-high"],
|
|
|
exclude_labels: vec![],
|
|
@@ -237,7 +238,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_unassigned_p_high",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("no", "assignee")],
|
|
|
include_labels: vec!["T-compiler", "P-high"],
|
|
|
exclude_labels: vec![],
|
|
@@ -246,7 +247,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_beta_p_critical",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-beta", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
@@ -255,7 +256,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_beta_p_high",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-beta", "P-high"],
|
|
|
exclude_labels: vec![],
|
|
@@ -264,7 +265,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_beta_p_medium",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-beta", "P-medium"],
|
|
|
exclude_labels: vec![],
|
|
@@ -273,7 +274,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_beta_p_low",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-beta", "P-low"],
|
|
|
exclude_labels: vec![],
|
|
@@ -282,7 +283,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_nightly_p_critical",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-nightly", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
@@ -291,7 +292,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_nightly_p_high",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-nightly", "P-high"],
|
|
|
exclude_labels: vec![],
|
|
@@ -300,7 +301,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_nightly_p_medium",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-nightly", "P-medium"],
|
|
|
exclude_labels: vec![],
|
|
@@ -309,7 +310,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_nightly_p_low",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-nightly", "P-low"],
|
|
|
exclude_labels: vec![],
|
|
@@ -318,7 +319,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_stable_p_critical",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-stable", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
@@ -327,7 +328,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_stable_p_high",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-stable", "P-high"],
|
|
|
exclude_labels: vec![],
|
|
@@ -336,7 +337,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_stable_p_medium",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-stable", "P-medium"],
|
|
|
exclude_labels: vec![],
|
|
@@ -345,7 +346,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_stable_p_low",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-stable", "P-low"],
|
|
|
exclude_labels: vec![],
|
|
@@ -354,7 +355,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "p_critical_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-compiler", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
@@ -363,7 +364,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "p_critical_t_rustdoc",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-rustdoc", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
@@ -372,7 +373,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "beta_regressions_p_high",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-beta", "P-high"],
|
|
|
exclude_labels: vec![
|
|
@@ -388,7 +389,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "nightly_regressions_unassigned_p_high",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("no", "assignee")],
|
|
|
include_labels: vec!["regression-from-stable-to-nightly", "P-high"],
|
|
|
exclude_labels: vec![
|
|
@@ -404,7 +405,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "nominated_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["I-compiler-nominated"],
|
|
|
exclude_labels: vec![],
|
|
@@ -413,7 +414,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "top_unreviewed_prs",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::graphql::LeastRecentlyReviewedPullRequests),
|
|
|
+ query: Arc::new(github::graphql::LeastRecentlyReviewedPullRequests),
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -425,7 +426,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "nominated_rfcs_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["I-compiler-nominated"],
|
|
|
exclude_labels: vec![],
|
|
@@ -437,7 +438,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
+pub fn lang<'a>() -> Box<dyn Action + Send + Sync> {
|
|
|
Box::new(Step {
|
|
|
name: "lang_agenda",
|
|
|
actions: vec![
|
|
@@ -447,7 +448,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "pending_project_proposals",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "issue")],
|
|
|
include_labels: vec!["major-change"],
|
|
|
exclude_labels: vec!["charter-needed", "proposed-final-comment-period"],
|
|
@@ -456,7 +457,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "pending_lang_team_prs",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "pull-request")],
|
|
|
include_labels: vec![],
|
|
|
exclude_labels: vec![],
|
|
@@ -465,7 +466,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "scheduled_meetings",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "issue")],
|
|
|
include_labels: vec!["meeting-proposal", "meeting-scheduled"],
|
|
|
exclude_labels: vec![],
|
|
@@ -478,7 +479,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
queries: vec![QueryMap {
|
|
|
name: "rfcs_waiting_to_be_merged",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "pr")],
|
|
|
include_labels: vec![
|
|
|
"disposition-merge",
|
|
@@ -501,7 +502,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "p_critical",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-lang", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
@@ -510,7 +511,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "nominated",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["I-lang-nominated"],
|
|
|
exclude_labels: vec![],
|
|
@@ -519,7 +520,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "proposed_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-lang", "proposed-final-comment-period"],
|
|
|
exclude_labels: vec!["finished-final-comment-period"],
|
|
@@ -528,7 +529,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "in_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-lang", "final-comment-period"],
|
|
|
exclude_labels: vec!["finished-final-comment-period"],
|
|
@@ -537,7 +538,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "finished_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-lang", "finished-final-comment-period"],
|
|
|
exclude_labels: vec![],
|
|
@@ -549,7 +550,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-pub fn lang_planning<'a>() -> Box<dyn Action> {
|
|
|
+pub fn lang_planning<'a>() -> Box<dyn Action + Send + Sync> {
|
|
|
Box::new(Step {
|
|
|
name: "lang_planning_agenda",
|
|
|
actions: vec![
|
|
@@ -559,7 +560,7 @@ pub fn lang_planning<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "pending_project_proposals",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "issue")],
|
|
|
include_labels: vec!["major-change"],
|
|
|
exclude_labels: vec!["charter-needed"],
|
|
@@ -568,7 +569,7 @@ pub fn lang_planning<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "pending_lang_team_prs",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "pr")],
|
|
|
include_labels: vec![],
|
|
|
exclude_labels: vec![],
|
|
@@ -577,7 +578,7 @@ pub fn lang_planning<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "proposed_meetings",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "issue")],
|
|
|
include_labels: vec!["meeting-proposal"],
|
|
|
exclude_labels: vec!["meeting-scheduled"],
|
|
@@ -590,7 +591,7 @@ pub fn lang_planning<'a>() -> Box<dyn Action> {
|
|
|
queries: vec![QueryMap {
|
|
|
name: "active_initiatives",
|
|
|
kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
+ query: Arc::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "issue")],
|
|
|
include_labels: vec!["lang-initiative"],
|
|
|
exclude_labels: vec![],
|
|
@@ -607,23 +608,29 @@ pub fn lang_planning<'a>() -> Box<dyn Action> {
|
|
|
pub fn compiler_backlog_bonanza<'a>() -> Box<dyn Action> {
|
|
|
Box::new(Step {
|
|
|
name: "compiler_backlog_bonanza",
|
|
|
- actions: vec![
|
|
|
- Query {
|
|
|
- repos: vec![
|
|
|
- ("rust-lang", "rust"),
|
|
|
- ],
|
|
|
- queries: vec![
|
|
|
- QueryMap {
|
|
|
- name: "tracking_issues",
|
|
|
- kind: QueryKind::List,
|
|
|
- query: Box::new(github::Query {
|
|
|
- filters: vec![("state", "open")],
|
|
|
- include_labels: vec!["C-tracking-issue"],
|
|
|
- exclude_labels: vec!["T-libs-api", "T-libs", "T-lang", "T-rustdoc"],
|
|
|
- }),
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
+ actions: vec![Query {
|
|
|
+ repos: vec![("rust-lang", "rust")],
|
|
|
+ queries: vec![QueryMap {
|
|
|
+ name: "tracking_issues",
|
|
|
+ kind: QueryKind::List,
|
|
|
+ query: Arc::new(github::Query {
|
|
|
+ filters: vec![("state", "open")],
|
|
|
+ include_labels: vec!["C-tracking-issue"],
|
|
|
+ exclude_labels: vec!["T-libs-api", "T-libs", "T-lang", "T-rustdoc"],
|
|
|
+ }),
|
|
|
+ }],
|
|
|
+ }],
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+// Lists available agenda pages
|
|
|
+pub static INDEX: &str = r#"
|
|
|
+<html>
|
|
|
+<body>
|
|
|
+<ul>
|
|
|
+ <li><a href="/agenda/lang/triage">T-lang triage agenda</a></li>
|
|
|
+ <li><a href="/agenda/lang/planning">T-lang planning agenda</a></li>
|
|
|
+</ul>
|
|
|
+</body>
|
|
|
+</html>
|
|
|
+"#;
|