{"action":"created","issue":{"url":"https://api.github.com/repos/vermiculus/magithub/issues/276","repository_url":"https://api.github.com/repos/vermiculus/magithub","labels_url":"https://api.github.com/repos/vermiculus/magithub/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/vermiculus/magithub/issues/276/comments","events_url":"https://api.github.com/repos/vermiculus/magithub/issues/276/events","html_url":"https://github.com/vermiculus/magithub/issues/276","id":294211133,"number":276,"title":"Magithub makes requests as 'ghub'","user":{"login":"cpitclaudel","id":8181630,"avatar_url":"https://avatars2.githubusercontent.com/u/8181630?v=4","gravatar_id":"","url":"https://api.github.com/users/cpitclaudel","html_url":"https://github.com/cpitclaudel","followers_url":"https://api.github.com/users/cpitclaudel/followers","following_url":"https://api.github.com/users/cpitclaudel/following{/other_user}","gists_url":"https://api.github.com/users/cpitclaudel/gists{/gist_id}","starred_url":"https://api.github.com/users/cpitclaudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpitclaudel/subscriptions","organizations_url":"https://api.github.com/users/cpitclaudel/orgs","repos_url":"https://api.github.com/users/cpitclaudel/repos","events_url":"https://api.github.com/users/cpitclaudel/events{/privacy}","received_events_url":"https://api.github.com/users/cpitclaudel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-04T16:46:40Z","updated_at":"2018-02-04T22:12:12Z","closed_at":"2018-02-04T22:11:49Z","author_association":"CONTRIBUTOR","body":"When I press RET on a notification to visit the page, I get a message from ghub asking from a token:\r\n\r\n```\r\nSuch a Github API token is not available:\r\n\r\n  Host:    api.github.com\r\n  User:    cpitclaudel\r\n  Package: ghub\r\n\r\n  Scopes requested in `ghub-github-token-scopes':\r\n    repo\r\n  Store locally according to `auth-sources':\r\n    (\"~/.authinfo\" \"~/.authinfo.gpg\" \"~/.netrc\")\r\n  Store on Github as:\r\n    \"Emacs package ghub @ clem-w50-mint\"\r\n\r\nWARNING: If you have enabled two-factor authentication then\r\n         you have to abort and create the token manually.\r\n\r\nIf in doubt, then abort and first view the section of the Ghub\r\ndocumentation called \"Manually Creating and Storing a Token\".\r\n\r\nOtherwise confirm and then provide your Github username and\r\npassword at the next two prompts.  Depending on the backend\r\nyou might have to provide a passphrase and confirm that you\r\nreally want to save the token.\r\n\r\nCreate and store such a token? \r\n```\r\n\r\nThis seems to come from this code:\r\n\r\n```\r\n(defun magithub-notification-browse (notification)\r\n  \"Visits the URL pointed to by NOTIFICATION.\"\r\n  (interactive (list (thing-at-point 'github-notification)))\r\n  (if notification\r\n      (let-alist notification\r\n        (cond\r\n         ((member .subject.type '(\"Issue\" \"PullRequest\"))\r\n          (ghubp-patch-notifications-threads-id notification) ;; ← HERE\r\n          (magithub-issue-view (magithub-request (ghubp-follow-get .subject.url))))\r\n         (t (if-let ((url (or .subject.latest_comment_url .subject.url))\r\n                     (html-url (alist-get 'html_url (magithub-request (ghubp-follow-get url)))))\r\n                (browse-url html-url)\r\n              (user-error \"No target URL found\")))))\r\n    (user-error \"No notification here\")))\r\n```\r\n\r\nThe `Package: ghub` seems wrong. Shouldn't the code pass `magithub` as `:auth` somehow?\r\n\r\nThanks!\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/vermiculus/magithub/issues/comments/362944469","html_url":"https://github.com/vermiculus/magithub/issues/276#issuecomment-362944469","issue_url":"https://api.github.com/repos/vermiculus/magithub/issues/276","id":362944469,"user":{"login":"vermiculus","id":2082195,"avatar_url":"https://avatars3.githubusercontent.com/u/2082195?v=4","gravatar_id":"","url":"https://api.github.com/users/vermiculus","html_url":"https://github.com/vermiculus","followers_url":"https://api.github.com/users/vermiculus/followers","following_url":"https://api.github.com/users/vermiculus/following{/other_user}","gists_url":"https://api.github.com/users/vermiculus/gists{/gist_id}","starred_url":"https://api.github.com/users/vermiculus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermiculus/subscriptions","organizations_url":"https://api.github.com/users/vermiculus/orgs","repos_url":"https://api.github.com/users/vermiculus/repos","events_url":"https://api.github.com/users/vermiculus/events{/privacy}","received_events_url":"https://api.github.com/users/vermiculus/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T22:12:12Z","updated_at":"2018-02-04T22:12:12Z","author_association":"OWNER","body":"(Thanks for the report!)"}}
{"actor":{"display_login":"vermiculus"}}