about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-01T20·55-0400
committerglittershark <grfn@gws.fyi>2020-07-01T20·56+0000
commit48cb38706b4650877c2304d98db2b25a8a202d95 (patch)
tree6e5cbe1d4051c87e1ab6a67efc67f8476845f10d
parent6cedd8354a6dd21f1e5fe094d4eb26dd3f92b49f (diff)
fix(gs/emacs): Sometimes GH returns PRs without an author r/1154
I don't know why-- but I don't want it breaking this command.

Change-Id: I90c28cd21f3a5bc9f0155a88b50b13434fda4c5d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/838
Reviewed-by: glittershark <grfn@gws.fyi>
-rw-r--r--users/glittershark/emacs.d/github-org.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/users/glittershark/emacs.d/github-org.el b/users/glittershark/emacs.d/github-org.el
index 942ed2d629..be8af3f394 100644
--- a/users/glittershark/emacs.d/github-org.el
+++ b/users/glittershark/emacs.d/github-org.el
@@ -54,8 +54,9 @@
   (check-type level integer)
   (check-type pr pull-request)
   (s-format (concat (make-string level ?*) " " format-string)
-            #'aget
-            `((author . ,(->> pr (pull-request-author) (alist-get 'name)))
+            'aget
+            `((author . ,(or (->> pr (pull-request-author) (alist-get 'name))
+                             "no author"))
               (owner . ,(->> pr (pull-request-repository)
                              (alist-get 'owner)
                              (alist-get 'login)))