aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-02-24 17:35:22 +0530
committerArun Isaac2022-02-28 17:41:09 +0530
commitb413019ac6db063440572a7ac3b6ee5f18466330 (patch)
tree27acb45c744882f97e365aab2ccd9dc71d06b338
parent05cac2662459a9432e4ab441069629ffea27a392 (diff)
downloadguix-forge-b413019ac6db063440572a7ac3b6ee5f18466330.tar.gz
guix-forge-b413019ac6db063440572a7ac3b6ee5f18466330.tar.lz
guix-forge-b413019ac6db063440572a7ac3b6ee5f18466330.zip
forge: Thunk ci-jobs and run fields.
These fields need to be thunked to allow the user access to this-record accessors when describing jobs. * forge/forge.scm (<forge-project-configuration>)[ci-jobs]: Thunk field. * forge/laminar.scm (<forge-laminar-job>)[run]: Thunk field.
-rw-r--r--forge/forge.scm2
-rw-r--r--forge/laminar.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/forge/forge.scm b/forge/forge.scm
index 71af1ad..1336509 100644
--- a/forge/forge.scm
+++ b/forge/forge.scm
@@ -74,7 +74,7 @@
(website-directory forge-project-configuration-website-directory
(default #f))
(ci-jobs forge-project-configuration-ci-jobs
- (default '()))
+ (default '()) (thunked))
(ci-jobs-trigger forge-project-configuration-ci-jobs-trigger ; one of 'post-receive-hook, 'cron, 'webhook
(default (cond
;; 'post-receive-hook for local repositories
diff --git a/forge/laminar.scm b/forge/laminar.scm
index 8704d39..9ce12d0 100644
--- a/forge/laminar.scm
+++ b/forge/laminar.scm
@@ -53,7 +53,7 @@
forge-laminar-job?
this-forge-laminar-job
(name forge-laminar-job-name)
- (run forge-laminar-job-run)
+ (run forge-laminar-job-run (thunked))
(after forge-laminar-job-after
(default #f)))