aboutsummaryrefslogtreecommitdiff
path: root/forge
diff options
context:
space:
mode:
authorArun Isaac2022-02-08 13:53:39 +0530
committerArun Isaac2022-02-08 13:53:39 +0530
commit093fd09396b3f079101eaa219818c0a43344cd3a (patch)
tree05221a7bf842c5ed804650cf53dc2994955da97b /forge
parente8ae17ca0eb9070e8c101661083c4d452f47b5fc (diff)
downloadguix-forge-093fd09396b3f079101eaa219818c0a43344cd3a.tar.gz
guix-forge-093fd09396b3f079101eaa219818c0a43344cd3a.tar.lz
guix-forge-093fd09396b3f079101eaa219818c0a43344cd3a.zip
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.
Diffstat (limited to 'forge')
-rw-r--r--forge/forge.scm6
1 files 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.