Skip to content

Commit ad2ac80

Browse files
authored
Merge pull request #21 from anticomputer/discussion-support
Bugfix: fetch discussion number properly
2 parents 4356b2b + ca95aed commit ad2ac80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gh-notify.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Repos are in the form \"owner/repo\".
216216
217217
Use this to muzzle specific repos that you want to silence across sessions.")
218218

219-
(defvar gh-notify-smokescreen-path "~/.gh-notify-smokescreen"
219+
(defvar gh-notify-smokescreen-path (expand-file-name "~/.gh-notify-smokescreen")
220220
"The default path for the magit `forge-visit' smokescreen repo.")
221221

222222
(defvar gh-notify-redraw-on-visit t
@@ -289,6 +289,8 @@ NOTIFICATIONS must be an alist as returned from `gh-notify-get-notifications'."
289289
for date = (format-time-string "%F" ts) ; use local time on our end for display
290290
for type = (oref forge-notification type)
291291
for topic-obj = (pcase type
292+
('discussion
293+
(forge-get-discussion (oref forge-notification topic)))
292294
('issue
293295
(forge-get-issue (oref forge-notification topic)))
294296
('pullreq

0 commit comments

Comments
 (0)