|
@@ -1,6 +1,5 @@
|
|
|
use crate::actions::{Action, Query, QueryKind, QueryMap, Step};
|
|
|
use crate::github;
|
|
|
-use std::collections::HashMap;
|
|
|
|
|
|
pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
let mut actions = Vec::new();
|
|
@@ -11,7 +10,7 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
queries.push(QueryMap {
|
|
|
name: "mcp_new_not_seconded",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["major-change", "to-announce"],
|
|
|
exclude_labels: vec![
|
|
@@ -22,14 +21,13 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
"t-libs",
|
|
|
"t-libs-api",
|
|
|
],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "mcp_old_not_seconded",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["major-change"],
|
|
|
exclude_labels: vec![
|
|
@@ -40,46 +38,42 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
"t-libs",
|
|
|
"t-libs-api",
|
|
|
],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "in_pre_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["proposed-final-comment-period"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
queries.push(QueryMap {
|
|
|
name: "in_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["final-comment-period"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "mcp_accepted",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "all")],
|
|
|
include_labels: vec!["major-change-accepted", "to-announce"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "fcp_finished",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "all")],
|
|
|
include_labels: vec![
|
|
|
"finished-final-comment-period",
|
|
@@ -87,7 +81,6 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
"to-announce",
|
|
|
],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
@@ -101,28 +94,26 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
queries.push(QueryMap {
|
|
|
name: "in_pre_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["proposed-final-comment-period", "T-compiler"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
queries.push(QueryMap {
|
|
|
name: "in_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["final-comment-period", "T-compiler"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "fcp_finished",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "all")],
|
|
|
include_labels: vec![
|
|
|
"finished-final-comment-period",
|
|
@@ -130,7 +121,6 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
"to-announce",
|
|
|
],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
@@ -144,28 +134,26 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
queries.push(QueryMap {
|
|
|
name: "in_pre_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["proposed-final-comment-period"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
queries.push(QueryMap {
|
|
|
name: "in_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["final-comment-period"],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "fcp_finished",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "all")],
|
|
|
include_labels: vec![
|
|
|
"finished-final-comment-period",
|
|
@@ -173,7 +161,6 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
"to-announce",
|
|
|
],
|
|
|
exclude_labels: vec!["t-libs", "t-libs-api"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
@@ -188,22 +175,20 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
queries.push(QueryMap {
|
|
|
name: "beta_nominated_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![],
|
|
|
include_labels: vec!["beta-nominated", "T-compiler"],
|
|
|
exclude_labels: vec!["beta-accepted"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "beta_nominated_t_rustdoc",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![],
|
|
|
include_labels: vec!["beta-nominated", "T-rustdoc"],
|
|
|
exclude_labels: vec!["beta-accepted"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
@@ -211,22 +196,20 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
queries.push(QueryMap {
|
|
|
name: "stable_nominated_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![],
|
|
|
include_labels: vec!["stable-nominated", "T-compiler"],
|
|
|
exclude_labels: vec!["stable-accepted"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "stable_nominated_t_rustdoc",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![],
|
|
|
include_labels: vec!["stable-nominated", "T-rustdoc"],
|
|
|
exclude_labels: vec!["stable-accepted"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
@@ -234,11 +217,10 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
queries.push(QueryMap {
|
|
|
name: "prs_waiting_on_team_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["S-waiting-on-team", "T-compiler"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
@@ -246,244 +228,217 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_p_critical",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-compiler", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_unassigned_p_critical",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("no", "assignee")],
|
|
|
include_labels: vec!["T-compiler", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_p_high",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-compiler", "P-high"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_unassigned_p_high",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("no", "assignee")],
|
|
|
include_labels: vec!["T-compiler", "P-high"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_beta_p_critical",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-beta", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_beta_p_high",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-beta", "P-high"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_beta_p_medium",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-beta", "P-medium"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_beta_p_low",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-beta", "P-low"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_nightly_p_critical",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-nightly", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_nightly_p_high",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-nightly", "P-high"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_nightly_p_medium",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-nightly", "P-medium"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_nightly_p_low",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-nightly", "P-low"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_stable_p_critical",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-stable", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_stable_p_high",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-stable", "P-high"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_stable_p_medium",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-stable", "P-medium"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "issues_of_note_regression_from_stable_to_stable_p_low",
|
|
|
kind: QueryKind::Count,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-stable", "P-low"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "p_critical_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-compiler", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "p_critical_t_rustdoc",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-rustdoc", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "beta_regressions_p_high",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["regression-from-stable-to-beta", "P-high"],
|
|
|
exclude_labels: vec!["T-infra", "T-libs", "T-release", "T-rustdoc", "T-core"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "nightly_regressions_unassigned_p_high",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("no", "assignee")],
|
|
|
include_labels: vec!["regression-from-stable-to-nightly", "P-high"],
|
|
|
exclude_labels: vec!["T-infra", "T-libs", "T-release", "T-rustdoc", "T-core"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
queries.push(QueryMap {
|
|
|
name: "nominated_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["I-nominated", "T-compiler"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
|
- let mut ordering = HashMap::new();
|
|
|
- ordering.insert("sort", "updated");
|
|
|
- ordering.insert("per_page", "5");
|
|
|
-
|
|
|
queries.push(QueryMap {
|
|
|
name: "top_unreviewed_prs",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::GraphQL(Box::new(
|
|
|
- github::graphql::LeastRecentlyReviewedPullRequests,
|
|
|
- )),
|
|
|
+ query: Box::new(github::graphql::LeastRecentlyReviewedPullRequests),
|
|
|
});
|
|
|
|
|
|
actions.push(Query {
|
|
@@ -499,11 +454,10 @@ pub fn prioritization<'a>() -> Box<dyn Action> {
|
|
|
queries.push(QueryMap {
|
|
|
name: "nominated_rfcs_t_compiler",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-compiler", "I-nominated"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
});
|
|
|
|
|
@@ -528,31 +482,28 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "pending_project_proposals",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "issue")],
|
|
|
include_labels: vec!["major-change"],
|
|
|
exclude_labels: vec!["charter-needed"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
QueryMap {
|
|
|
name: "pending_lang_team_prs",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "pull-request")],
|
|
|
include_labels: vec![],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
QueryMap {
|
|
|
name: "scheduled_meetings",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "issue")],
|
|
|
include_labels: vec!["meeting-proposal", "meeting-scheduled"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
],
|
|
@@ -562,7 +513,7 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
queries: vec![QueryMap {
|
|
|
name: "rfcs_waiting_to_be_merged",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "pr")],
|
|
|
include_labels: vec![
|
|
|
"disposition-merge",
|
|
@@ -570,7 +521,6 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
"T-lang",
|
|
|
],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
}],
|
|
|
},
|
|
@@ -585,51 +535,46 @@ pub fn lang<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "p_critical",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-lang", "P-critical"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
QueryMap {
|
|
|
name: "nominated",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-lang", "I-nominated"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
QueryMap {
|
|
|
name: "proposed_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-lang", "proposed-final-comment-period"],
|
|
|
exclude_labels: vec!["finished-final-comment-period"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
QueryMap {
|
|
|
name: "in_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-lang", "final-comment-period"],
|
|
|
exclude_labels: vec!["finished-final-comment-period"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
QueryMap {
|
|
|
name: "finished_fcp",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open")],
|
|
|
include_labels: vec!["T-lang", "finished-final-comment-period"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
],
|
|
@@ -648,31 +593,28 @@ pub fn lang_planning<'a>() -> Box<dyn Action> {
|
|
|
QueryMap {
|
|
|
name: "pending_project_proposals",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "issue")],
|
|
|
include_labels: vec!["major-change"],
|
|
|
exclude_labels: vec!["charter-needed"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
QueryMap {
|
|
|
name: "pending_lang_team_prs",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "pr")],
|
|
|
include_labels: vec![],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
QueryMap {
|
|
|
name: "proposed_meetings",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "issue")],
|
|
|
include_labels: vec!["meeting-proposal"],
|
|
|
exclude_labels: vec!["meeting-scheduled"],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
},
|
|
|
],
|
|
@@ -682,11 +624,10 @@ pub fn lang_planning<'a>() -> Box<dyn Action> {
|
|
|
queries: vec![QueryMap {
|
|
|
name: "active_initiatives",
|
|
|
kind: QueryKind::List,
|
|
|
- query: github::GithubQuery::REST(github::Query {
|
|
|
+ query: Box::new(github::Query {
|
|
|
filters: vec![("state", "open"), ("is", "issue")],
|
|
|
include_labels: vec!["lang-initiative"],
|
|
|
exclude_labels: vec![],
|
|
|
- ordering: HashMap::new(),
|
|
|
}),
|
|
|
}],
|
|
|
},
|