summaryrefslogtreecommitdiffstats
path: root/src/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/http')
-rw-r--r--src/http/render.rs3
-rw-r--r--src/http/routes.rs1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/http/render.rs b/src/http/render.rs
index 057ea14..ca3ba51 100644
--- a/src/http/render.rs
+++ b/src/http/render.rs
@@ -140,6 +140,9 @@ pub struct ReviewHead {
pub risk: String,
pub signals: Vec<String>,
pub missing_deps: Vec<String>,
+ /// §10.3: "approving this marks N packages stale" — the packages of ours
+ /// whose own recipes name one of the packages this candidate produces.
+ pub dependents: Vec<String>,
pub revision: i64,
pub aur_commit: String,
pub aur_commit_short: String,
diff --git a/src/http/routes.rs b/src/http/routes.rs
index 177ffcd..26aaa89 100644
--- a/src/http/routes.rs
+++ b/src/http/routes.rs
@@ -284,6 +284,7 @@ fn review_body(
risk: c.risk_level.clone(),
signals: c.risk_signals(),
missing_deps: c.missing_deps(),
+ dependents: crate::watch::staleness::dependents_of(db, &c.pkgbase).unwrap_or_default(),
revision: c.revision,
aur_commit: snapshot.as_ref().map(|s| s.aur_commit.clone()).unwrap_or_default(),
aur_commit_short: snapshot