DATARAMA

Handle missing release files

March 17, 2016
Project: goon

If a tag doesn't have a RELEASE.md file, the Goon release list will now just point to the main repository page for the tag.

1 files changed, 6 insertions / 3 deletions

diff --git a/goon.scm b/goon.scm
index b0ef93a..d164933 100755
--- a/goon.scm
+++ b/goon.scm
@@ -636,9 +636,12 @@
             (lambda (rel) 
               (cons (string-append (repository-name repo) " " (tag-name rel))
                 (cons (seconds->date (commit-time (tag-peel rel)))
-                      (cons "goon" (string-append (repository-name repo) "/" 
-                                     (repository-name repo) "-" (tag-name rel)
-                                     ".html")))))
+                      (cons "goon" 
+                            (if (release-file rel)
+                              (string-append (repository-name repo) "/" 
+                                             (repository-name repo) "-" (tag-name rel))
+                              (string-append (repository-name repo) "/" "master.html"))))))
+
             repo-releases)))
       repos))))))
 
 
Powered by Plutonium