Commit f30d65db9a for bind
commit f30d65db9a214036d00d4e2637f5b498c61b3818
Author: Michał Kępień <michal@isc.org>
Date: Tue Dec 1 11:31:02 2026 +0100
Use a label for signing off on ans.py changes
Approving a merge request just to sign off on its ans.py changes makes
it disappear from GitLab merge request filters used by developers, even
though the rest of the merge request may still need approval. Use the
"ans.py OK" label to mark this partial approval instead.
diff --git a/dangerfile.py b/dangerfile.py
index 31a0bd7b96..48b332a382 100644
--- a/dangerfile.py
+++ b/dangerfile.py
@@ -424,9 +424,8 @@ try:
ans_py_reviewers = re.split(r"[,\s]+", os.environ["DANGER_ANS_PY_REVIEWERS"])
except KeyError:
ans_py_reviewers = []
-approved_by = [u["user"]["username"] for u in approvals.approved_by if "user" in u]
-approved_by_ans_py_reviewers = set(ans_py_reviewers) & set(approved_by)
-needs_review = ans_py_changes and ans_py_reviewers and not approved_by_ans_py_reviewers
+
+needs_review = ans_py_changes and ans_py_reviewers and "ans.py OK" not in mr_labels
if needs_review and not is_backport:
message(