4040 :type 'integer
4141 :group 'pr-review )
4242
43- (defvar pr-review-reaction-emojis
44- '((" CONFUSED" . " 😕" )
45- (" EYES" . " 👀" )
46- (" HEART" . " ❤️" )
47- (" HOORAY" . " 🎉" )
48- (" LAUGH" . " 😄" )
49- (" ROCKET" . " 🚀" )
50- (" THUMBS_DOWN" . " 👎" )
51- (" THUMBS_UP" . " 👍" ))
52- " Alist of github reaction name to emoji unicode.
53- See https://docs.github.com/en/graphql/reference/enums#reactioncontent" )
54-
5543(defun pr-review--format-timestamp (str )
5644 " Convert and format timestamp STR from json."
5745 (concat
@@ -177,7 +165,7 @@ INDENT is an optional number of extra spaces at the start of the line."
177165 (setq s (concat s " " )))
178166 (setq s (concat
179167 s
180- (format " %s * %d "
168+ (format " %s%d "
181169 (alist-get .content pr-review-reaction-emojis .content nil 'equal )
182170 .reactors.totalCount)
183171 (when .viewerHasReacted
@@ -442,6 +430,7 @@ It will be inserted at the beginning."
442430 (oset item-section databaseId .databaseId)
443431 (oset item-section updatable .viewerCanUpdate)
444432 (oset item-section body .body)
433+ (oset item-section reaction-groups .reactionGroups)
445434 (magit-insert-heading
446435 (make-string (* 2 pr-review-section-indent-width) ?\s )
447436 (pr-review--propertize-username .author.login)
@@ -481,6 +470,7 @@ It will be inserted at the beginning."
481470 (oset section databaseId .databaseId)
482471 (oset section updatable .viewerCanUpdate)
483472 (oset section body .body)
473+ (oset section reaction-groups .reactionGroups)
484474 (magit-insert-heading
485475 (propertize " Reviewed by " 'face 'magit-section-heading )
486476 (pr-review--propertize-username .author.login)
@@ -504,6 +494,7 @@ It will be inserted at the beginning."
504494 (oset section databaseId .databaseId)
505495 (oset section updatable .viewerCanUpdate)
506496 (oset section body .body)
497+ (oset section reaction-groups .reactionGroups)
507498 (magit-insert-heading
508499 (propertize " Commented by " 'face 'magit-section-heading )
509500 (pr-review--propertize-username .author.login)
@@ -869,9 +860,10 @@ it can be displayed in a single line."
869860 (pr-review--insert-reviewers-info pr)
870861 (pr-review--insert-assignees-info pr)
871862 (insert " \n " )
872- (magit-insert-section section (pr-review--description-section)
863+ (magit-insert-section section (pr-review--description-section .id )
873864 (oset section body .body)
874865 (oset section updatable .viewerCanUpdate)
866+ (oset section reaction-groups .reactionGroups)
875867 (magit-insert-heading " Description" )
876868 (pr-review--insert-html .bodyHTML)
877869 (pr-review--maybe-insert-reactions .reactionGroups))
0 commit comments