vermiculus / magithub

**DEPRECATED - please use Forge instead!** -- Magit-based interfaces to GitHub
GNU General Public License v3.0
579 stars 63 forks source link

Sort out read/unread notification functions/documentation #251

Closed vermiculus closed 6 years ago

vermiculus commented 6 years ago

Fix #245.

stardiviner commented 6 years ago

How to only get the "Participation Notifications" ? I'm using ghub.el functions to show a number in my custom mode-line. Like this:

(defvar github-notifications-number nil)
  (defun github-notifications ()
    (setq github-notifications-number (length (ghub-get "/notifications"))))
  (run-with-timer 10 1200 'github-notifications)

But (ghub-get "/notifications") is not what I want, do you know what is the API URL for "Participation Notifications" ?

vermiculus commented 6 years ago

(ghubp-get-notifications :participating "true") or
(ghub-get "/notifications" '((participating . "true"))).

See also the documentation of ghubp-get-notifications.

stardiviner commented 6 years ago

Thanks @vermiculus