{"action":"created","issue":{"url":"https://api.github.com/repos/r-lib/usethis/issues/345","repository_url":"https://api.github.com/repos/r-lib/usethis","labels_url":"https://api.github.com/repos/r-lib/usethis/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/r-lib/usethis/issues/345/comments","events_url":"https://api.github.com/repos/r-lib/usethis/issues/345/events","html_url":"https://github.com/r-lib/usethis/issues/345","id":322072520,"number":345,"title":"use_github needs better error message if no PAT","user":{"login":"behrman","id":15931497,"avatar_url":"https://avatars3.githubusercontent.com/u/15931497?v=4","gravatar_id":"","url":"https://api.github.com/users/behrman","html_url":"https://github.com/behrman","followers_url":"https://api.github.com/users/behrman/followers","following_url":"https://api.github.com/users/behrman/following{/other_user}","gists_url":"https://api.github.com/users/behrman/gists{/gist_id}","starred_url":"https://api.github.com/users/behrman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behrman/subscriptions","organizations_url":"https://api.github.com/users/behrman/orgs","repos_url":"https://api.github.com/users/behrman/repos","events_url":"https://api.github.com/users/behrman/events{/privacy}","received_events_url":"https://api.github.com/users/behrman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-10T20:27:38Z","updated_at":"2018-05-10T22:14:59Z","closed_at":null,"author_association":"NONE","body":"```R\r\n> usethis::use_github(organisation = \"stanford-datalab\")\r\n● Check title and description\r\n  Name:        dcl\r\n  Description: Tools for Data Challenge Lab\r\nAre title and description ok?\r\n1: No\r\n2: Not now\r\n3: Yes\r\n\r\nSelection: 3\r\n✔ Creating GitHub repository\r\nError in gh::gh(\"POST /orgs/:org/repos\", org = organisation, name = repo_name,  : \r\n  GitHub API error (401): 401 Unauthorized\r\n  Requires authentication\r\n```\r\n\r\nProbably need to hit some API endpoint to check if auth available, and if not provide an informative message pointing you to instructions on how to set up PAT"},"comment":{"url":"https://api.github.com/repos/r-lib/usethis/issues/comments/388202324","html_url":"https://github.com/r-lib/usethis/issues/345#issuecomment-388202324","issue_url":"https://api.github.com/repos/r-lib/usethis/issues/345","id":388202324,"user":{"login":"hadley","id":4196,"avatar_url":"https://avatars3.githubusercontent.com/u/4196?v=4","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"created_at":"2018-05-10T22:14:59Z","updated_at":"2018-05-10T22:14:59Z","author_association":"OWNER","body":"(This was another issue filed by me on Bill's computer)"}}
{"actor":{"display_login":"hadley"}}