{"action":"closed","number":63,"pull_request":{"url":"https://api.github.com/repos/sigma/gh.el/pulls/63","id":53532493,"html_url":"https://github.com/sigma/gh.el/pull/63","diff_url":"https://github.com/sigma/gh.el/pull/63.diff","patch_url":"https://github.com/sigma/gh.el/pull/63.patch","issue_url":"https://api.github.com/repos/sigma/gh.el/issues/63","number":63,"state":"closed","locked":false,"title":"Fixed null content API bug","user":{"login":"rothmichaels","id":1254459,"avatar_url":"https://avatars.githubusercontent.com/u/1254459?v=3","gravatar_id":"","url":"https://api.github.com/users/rothmichaels","html_url":"https://github.com/rothmichaels","followers_url":"https://api.github.com/users/rothmichaels/followers","following_url":"https://api.github.com/users/rothmichaels/following{/other_user}","gists_url":"https://api.github.com/users/rothmichaels/gists{/gist_id}","starred_url":"https://api.github.com/users/rothmichaels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rothmichaels/subscriptions","organizations_url":"https://api.github.com/users/rothmichaels/orgs","repos_url":"https://api.github.com/users/rothmichaels/repos","events_url":"https://api.github.com/users/rothmichaels/events{/privacy}","received_events_url":"https://api.github.com/users/rothmichaels/received_events","type":"User","site_admin":false},"body":"This came up when I was debugging defunkt/gist.el#74\r\n* * *\r\nCalling `gist-mode-write-file` from a git-mode buffer or\r\n`gist-edit-current-description` from\r\nthe *github:gists* (i.e. `git-list`) buffer was returning the following\r\nerror: `byte-code: Invalid slot type: gh-gist-gist, id, string, nil`.\r\n\r\nThis error was because the GitHub v3 API does not allow null \"content\"\r\nproperties.  This functions were setting this slot to nil to delete the\r\nfile.  The GitHub v3 API requires a null object associated with the\r\nfilename to delete a gist file (see\r\nhttps://developer.github.com/v3/gists/#edit-a-gist).\r\n\r\nTo fix this, `gh-gist-gist-file-to-obj` was updated to return length one\r\nlists containing the filename when the :content slot is nil.\r\n* * *\r\nFixes defunkt/gist.el#74","created_at":"2015-12-14T07:34:44Z","updated_at":"2015-12-14T08:09:15Z","closed_at":"2015-12-14T08:09:15Z","merged_at":null,"merge_commit_sha":"c435e53d87b40c7aa8be4a5008b32612bcbd2fa2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sigma/gh.el/pulls/63/commits","review_comments_url":"https://api.github.com/repos/sigma/gh.el/pulls/63/comments","review_comment_url":"https://api.github.com/repos/sigma/gh.el/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sigma/gh.el/issues/63/comments","statuses_url":"https://api.github.com/repos/sigma/gh.el/statuses/655adb462869dcf593d22350ca4cb6ab4faf5eb3","head":{"label":"rothmichaels:gist-issue-74","ref":"gist-issue-74","sha":"655adb462869dcf593d22350ca4cb6ab4faf5eb3","user":{"login":"rothmichaels","id":1254459,"avatar_url":"https://avatars.githubusercontent.com/u/1254459?v=3","gravatar_id":"","url":"https://api.github.com/users/rothmichaels","html_url":"https://github.com/rothmichaels","followers_url":"https://api.github.com/users/rothmichaels/followers","following_url":"https://api.github.com/users/rothmichaels/following{/other_user}","gists_url":"https://api.github.com/users/rothmichaels/gists{/gist_id}","starred_url":"https://api.github.com/users/rothmichaels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rothmichaels/subscriptions","organizations_url":"https://api.github.com/users/rothmichaels/orgs","repos_url":"https://api.github.com/users/rothmichaels/repos","events_url":"https://api.github.com/users/rothmichaels/events{/privacy}","received_events_url":"https://api.github.com/users/rothmichaels/received_events","type":"User","site_admin":false},"repo":{"id":47958705,"name":"gh.el","full_name":"rothmichaels/gh.el","owner":{"login":"rothmichaels","id":1254459,"avatar_url":"https://avatars.githubusercontent.com/u/1254459?v=3","gravatar_id":"","url":"https://api.github.com/users/rothmichaels","html_url":"https://github.com/rothmichaels","followers_url":"https://api.github.com/users/rothmichaels/followers","following_url":"https://api.github.com/users/rothmichaels/following{/other_user}","gists_url":"https://api.github.com/users/rothmichaels/gists{/gist_id}","starred_url":"https://api.github.com/users/rothmichaels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rothmichaels/subscriptions","organizations_url":"https://api.github.com/users/rothmichaels/orgs","repos_url":"https://api.github.com/users/rothmichaels/repos","events_url":"https://api.github.com/users/rothmichaels/events{/privacy}","received_events_url":"https://api.github.com/users/rothmichaels/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rothmichaels/gh.el","description":"GitHub API library for Emacs","fork":true,"url":"https://api.github.com/repos/rothmichaels/gh.el","forks_url":"https://api.github.com/repos/rothmichaels/gh.el/forks","keys_url":"https://api.github.com/repos/rothmichaels/gh.el/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rothmichaels/gh.el/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rothmichaels/gh.el/teams","hooks_url":"https://api.github.com/repos/rothmichaels/gh.el/hooks","issue_events_url":"https://api.github.com/repos/rothmichaels/gh.el/issues/events{/number}","events_url":"https://api.github.com/repos/rothmichaels/gh.el/events","assignees_url":"https://api.github.com/repos/rothmichaels/gh.el/assignees{/user}","branches_url":"https://api.github.com/repos/rothmichaels/gh.el/branches{/branch}","tags_url":"https://api.github.com/repos/rothmichaels/gh.el/tags","blobs_url":"https://api.github.com/repos/rothmichaels/gh.el/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rothmichaels/gh.el/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rothmichaels/gh.el/git/refs{/sha}","trees_url":"https://api.github.com/repos/rothmichaels/gh.el/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rothmichaels/gh.el/statuses/{sha}","languages_url":"https://api.github.com/repos/rothmichaels/gh.el/languages","stargazers_url":"https://api.github.com/repos/rothmichaels/gh.el/stargazers","contributors_url":"https://api.github.com/repos/rothmichaels/gh.el/contributors","subscribers_url":"https://api.github.com/repos/rothmichaels/gh.el/subscribers","subscription_url":"https://api.github.com/repos/rothmichaels/gh.el/subscription","commits_url":"https://api.github.com/repos/rothmichaels/gh.el/commits{/sha}","git_commits_url":"https://api.github.com/repos/rothmichaels/gh.el/git/commits{/sha}","comments_url":"https://api.github.com/repos/rothmichaels/gh.el/comments{/number}","issue_comment_url":"https://api.github.com/repos/rothmichaels/gh.el/issues/comments{/number}","contents_url":"https://api.github.com/repos/rothmichaels/gh.el/contents/{+path}","compare_url":"https://api.github.com/repos/rothmichaels/gh.el/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rothmichaels/gh.el/merges","archive_url":"https://api.github.com/repos/rothmichaels/gh.el/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rothmichaels/gh.el/downloads","issues_url":"https://api.github.com/repos/rothmichaels/gh.el/issues{/number}","pulls_url":"https://api.github.com/repos/rothmichaels/gh.el/pulls{/number}","milestones_url":"https://api.github.com/repos/rothmichaels/gh.el/milestones{/number}","notifications_url":"https://api.github.com/repos/rothmichaels/gh.el/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rothmichaels/gh.el/labels{/name}","releases_url":"https://api.github.com/repos/rothmichaels/gh.el/releases{/id}","created_at":"2015-12-14T07:23:21Z","updated_at":"2015-12-14T07:23:21Z","pushed_at":"2015-12-14T08:04:24Z","git_url":"git://github.com/rothmichaels/gh.el.git","ssh_url":"git@github.com:rothmichaels/gh.el.git","clone_url":"https://github.com/rothmichaels/gh.el.git","svn_url":"https://github.com/rothmichaels/gh.el","homepage":"","size":296,"stargazers_count":0,"watchers_count":0,"language":"Emacs Lisp","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sigma:master","ref":"master","sha":"644c0d24af430fdbc9fc90e028fca3a054333025","user":{"login":"sigma","id":16090,"avatar_url":"https://avatars.githubusercontent.com/u/16090?v=3","gravatar_id":"","url":"https://api.github.com/users/sigma","html_url":"https://github.com/sigma","followers_url":"https://api.github.com/users/sigma/followers","following_url":"https://api.github.com/users/sigma/following{/other_user}","gists_url":"https://api.github.com/users/sigma/gists{/gist_id}","starred_url":"https://api.github.com/users/sigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigma/subscriptions","organizations_url":"https://api.github.com/users/sigma/orgs","repos_url":"https://api.github.com/users/sigma/repos","events_url":"https://api.github.com/users/sigma/events{/privacy}","received_events_url":"https://api.github.com/users/sigma/received_events","type":"User","site_admin":false},"repo":{"id":1825406,"name":"gh.el","full_name":"sigma/gh.el","owner":{"login":"sigma","id":16090,"avatar_url":"https://avatars.githubusercontent.com/u/16090?v=3","gravatar_id":"","url":"https://api.github.com/users/sigma","html_url":"https://github.com/sigma","followers_url":"https://api.github.com/users/sigma/followers","following_url":"https://api.github.com/users/sigma/following{/other_user}","gists_url":"https://api.github.com/users/sigma/gists{/gist_id}","starred_url":"https://api.github.com/users/sigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigma/subscriptions","organizations_url":"https://api.github.com/users/sigma/orgs","repos_url":"https://api.github.com/users/sigma/repos","events_url":"https://api.github.com/users/sigma/events{/privacy}","received_events_url":"https://api.github.com/users/sigma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sigma/gh.el","description":"GitHub API library for Emacs","fork":false,"url":"https://api.github.com/repos/sigma/gh.el","forks_url":"https://api.github.com/repos/sigma/gh.el/forks","keys_url":"https://api.github.com/repos/sigma/gh.el/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sigma/gh.el/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sigma/gh.el/teams","hooks_url":"https://api.github.com/repos/sigma/gh.el/hooks","issue_events_url":"https://api.github.com/repos/sigma/gh.el/issues/events{/number}","events_url":"https://api.github.com/repos/sigma/gh.el/events","assignees_url":"https://api.github.com/repos/sigma/gh.el/assignees{/user}","branches_url":"https://api.github.com/repos/sigma/gh.el/branches{/branch}","tags_url":"https://api.github.com/repos/sigma/gh.el/tags","blobs_url":"https://api.github.com/repos/sigma/gh.el/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sigma/gh.el/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sigma/gh.el/git/refs{/sha}","trees_url":"https://api.github.com/repos/sigma/gh.el/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sigma/gh.el/statuses/{sha}","languages_url":"https://api.github.com/repos/sigma/gh.el/languages","stargazers_url":"https://api.github.com/repos/sigma/gh.el/stargazers","contributors_url":"https://api.github.com/repos/sigma/gh.el/contributors","subscribers_url":"https://api.github.com/repos/sigma/gh.el/subscribers","subscription_url":"https://api.github.com/repos/sigma/gh.el/subscription","commits_url":"https://api.github.com/repos/sigma/gh.el/commits{/sha}","git_commits_url":"https://api.github.com/repos/sigma/gh.el/git/commits{/sha}","comments_url":"https://api.github.com/repos/sigma/gh.el/comments{/number}","issue_comment_url":"https://api.github.com/repos/sigma/gh.el/issues/comments{/number}","contents_url":"https://api.github.com/repos/sigma/gh.el/contents/{+path}","compare_url":"https://api.github.com/repos/sigma/gh.el/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sigma/gh.el/merges","archive_url":"https://api.github.com/repos/sigma/gh.el/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sigma/gh.el/downloads","issues_url":"https://api.github.com/repos/sigma/gh.el/issues{/number}","pulls_url":"https://api.github.com/repos/sigma/gh.el/pulls{/number}","milestones_url":"https://api.github.com/repos/sigma/gh.el/milestones{/number}","notifications_url":"https://api.github.com/repos/sigma/gh.el/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sigma/gh.el/labels{/name}","releases_url":"https://api.github.com/repos/sigma/gh.el/releases{/id}","created_at":"2011-05-31T09:16:34Z","updated_at":"2015-12-09T19:54:48Z","pushed_at":"2015-12-14T08:06:32Z","git_url":"git://github.com/sigma/gh.el.git","ssh_url":"git@github.com:sigma/gh.el.git","clone_url":"https://github.com/sigma/gh.el.git","svn_url":"https://github.com/sigma/gh.el","homepage":"","size":649,"stargazers_count":153,"watchers_count":153,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"open_issues_count":20,"forks":43,"open_issues":20,"watchers":153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sigma/gh.el/pulls/63"},"html":{"href":"https://github.com/sigma/gh.el/pull/63"},"issue":{"href":"https://api.github.com/repos/sigma/gh.el/issues/63"},"comments":{"href":"https://api.github.com/repos/sigma/gh.el/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/sigma/gh.el/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/sigma/gh.el/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sigma/gh.el/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/sigma/gh.el/statuses/655adb462869dcf593d22350ca4cb6ab4faf5eb3"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":7,"deletions":2,"changed_files":1}}