From 093fd09396b3f079101eaa219818c0a43344cd3a Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 8 Feb 2022 13:53:39 +0530 Subject: forge: Match only exact matches with group regex. Prior to this commit, group regular expressions could match parts of job names. After this commit, they will only match the entire job name. * forge/forge.scm (forge-service-type): Surround regex in a non-capturing group, and ^ and $ for exact matches. --- forge/forge.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/forge/forge.scm b/forge/forge.scm index c21ac48..95f9894 100644 --- a/forge/forge.scm +++ b/forge/forge.scm @@ -233,8 +233,10 @@ derivation to run." (jobs (forge-laminar-group (name (forge-project-configuration-name project)) - (regex (string-join (map forge-laminar-job-name jobs) - "|")))))) + (regex (string-append "^(?:" + (string-join (map forge-laminar-job-name jobs) + "|") + ")$")))))) (forge-configuration-projects config))))) ;; Set up cron jobs to trigger CI jobs for remote ;; repositories. -- cgit v1.2.3