From 04e7060cf9b81aee4a243c23091b3c089805c9b6 Mon Sep 17 00:00:00 2001
From: Ben Morrice <ben.morrice@cern.ch>
Date: Wed, 6 Dec 2023 12:50:56 +0100
Subject: [PATCH] Use yaml anchors

---
 package_alerts/dev.packages.yml  | 8 +++-----
 package_alerts/prod.packages.yml | 8 +++-----
 2 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/package_alerts/dev.packages.yml b/package_alerts/dev.packages.yml
index 7a14b51..5daca95 100644
--- a/package_alerts/dev.packages.yml
+++ b/package_alerts/dev.packages.yml
@@ -6,15 +6,13 @@
 # and no notes will be included in the MM message.
 ---
 packages:
-  almalinux-release:
+  almalinux-release: &dangerous_package
     notes: |-
       **MANUAL ACTION REQUIRED**: This is a "dangerous package" and it will need to be [rebuilt by hand](https://linuxops.web.cern.ch/distributions/snapshots/#-release-packages-the-dangerous-rpms). If you don't do it **today**, the daily snapshot will stop tomorrow and you'll have more work to do then.
   redhat-release:
-    notes: |-
-      **MANUAL ACTION REQUIRED**: This is a "dangerous package" and it will need to be [rebuilt by hand](https://linuxops.web.cern.ch/distributions/snapshots/#-release-packages-the-dangerous-rpms). If you don't do it **today**, the daily snapshot will stop tomorrow and you'll have more work to do then.
+    <<: *dangerous_package
   epel-release:
-    notes: |-
-      **MANUAL ACTION REQUIRED**: This is a "dangerous package" and it will need to be [rebuilt by hand](https://linuxops.web.cern.ch/distributions/snapshots/#-release-packages-the-dangerous-rpms). If you don't do it **today**, the daily snapshot will stop tomorrow and you'll have more work to do then.
+    <<: *dangerous_package
   kernel:
   systemd:
   dbus:
diff --git a/package_alerts/prod.packages.yml b/package_alerts/prod.packages.yml
index 1996704..1531d54 100644
--- a/package_alerts/prod.packages.yml
+++ b/package_alerts/prod.packages.yml
@@ -6,15 +6,13 @@
 # and no notes will be included in the MM message.
 ---
 packages:
-  almalinux-release:
+  almalinux-release: &dangerous_package
     notes: |-
       **MANUAL ACTION REQUIRED**: This is a "dangerous package" and it will need to be [rebuilt by hand](https://linuxops.web.cern.ch/distributions/snapshots/#-release-packages-the-dangerous-rpms). If you don't do it **today**, the daily snapshot will stop tomorrow and you'll have more work to do then.
   redhat-release:
-    notes: |-
-      **MANUAL ACTION REQUIRED**: This is a "dangerous package" and it will need to be [rebuilt by hand](https://linuxops.web.cern.ch/distributions/snapshots/#-release-packages-the-dangerous-rpms). If you don't do it **today**, the daily snapshot will stop tomorrow and you'll have more work to do then.
+    <<: *dangerous_package
   epel-release:
-    notes: |-
-      **MANUAL ACTION REQUIRED**: This is a "dangerous package" and it will need to be [rebuilt by hand](https://linuxops.web.cern.ch/distributions/snapshots/#-release-packages-the-dangerous-rpms). If you don't do it **today**, the daily snapshot will stop tomorrow and you'll have more work to do then.
+    <<: *dangerous_package
   systemd:
   dbus:
   glibc:
-- 
GitLab