{"action":"created","comment":{"url":"https://api.github.com/repos/octokit/octokit.net/pulls/comments/57902468","id":57902468,"diff_hunk":"@@ -225,5 +225,37 @@ public Task<Issue> Update(string owner, string name, int number, IssueUpdate iss\n \n             return ApiConnection.Patch<Issue>(ApiUrls.Issue(owner, name, number), issueUpdate);\n         }\n+\n+        /// <summary>\n+        /// Locks an issue for the specified repository. Issue owners and users with push access can lock an issue.\n+        /// </summary>\n+        /// <remarks>https://developer.github.com/v3/issues/#lock-an-issue</remarks>\n+        /// <param name=\"owner\">The owner of the repository</param>\n+        /// <param name=\"name\">The name of the repository</param>\n+        /// <param name=\"number\">The issue number</param>\n+        /// <returns></returns>\n+        public Task<Issue> Lock(string owner, string name, int number)\n+        {\n+            Ensure.ArgumentNotNullOrEmptyString(owner, \"owner\");\n+            Ensure.ArgumentNotNullOrEmptyString(name, \"name\");\n+\n+            return ApiConnection.Put<Issue>(ApiUrls.IssueLock(owner, name, number), AcceptHeaders.IssueLockingUnlockingApiPreview);\n+        }\n+\n+        /// <summary>\n+        /// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue.\n+        /// </summary>\n+        /// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks>\n+        /// <param name=\"owner\">The owner of the repository</param>\n+        /// <param name=\"name\">The name of the repository</param>\n+        /// <param name=\"number\">The issue number</param>\n+        /// <returns></returns>\n+        public Task Unlock(string owner, string name, int number)\n+        {\n+            Ensure.ArgumentNotNullOrEmptyString(owner, \"owner\");\n+            Ensure.ArgumentNotNullOrEmptyString(name, \"name\");\n+\n+            return ApiConnection.Delete(ApiUrls.IssueLock(owner, name, number), AcceptHeaders.IssueLockingUnlockingApiPreview);","path":"Octokit/Clients/IssuesClient.cs","position":null,"original_position":34,"commit_id":"73240390ca42f9148f52815673a604db6425fb22","original_commit_id":"5173adeffbe5e54d52aa1af5452093a1b7ee23c7","user":{"login":"shiftkey","id":359239,"avatar_url":"https://avatars.githubusercontent.com/u/359239?v=3","gravatar_id":"","url":"https://api.github.com/users/shiftkey","html_url":"https://github.com/shiftkey","followers_url":"https://api.github.com/users/shiftkey/followers","following_url":"https://api.github.com/users/shiftkey/following{/other_user}","gists_url":"https://api.github.com/users/shiftkey/gists{/gist_id}","starred_url":"https://api.github.com/users/shiftkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiftkey/subscriptions","organizations_url":"https://api.github.com/users/shiftkey/orgs","repos_url":"https://api.github.com/users/shiftkey/repos","events_url":"https://api.github.com/users/shiftkey/events{/privacy}","received_events_url":"https://api.github.com/users/shiftkey/received_events","type":"User","site_admin":true},"body":"> we could just go with adding an overload for `Delete(Uri uri, object data, string accepts)` and then pass null as the body\r\n\r\nI don't think we can pass `null` here, but everything else is :thumbsup: from me","created_at":"2016-03-30T14:54:33Z","updated_at":"2016-03-30T14:54:33Z","html_url":"https://github.com/octokit/octokit.net/pull/1185#discussion_r57902468","pull_request_url":"https://api.github.com/repos/octokit/octokit.net/pulls/1185","_links":{"self":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/comments/57902468"},"html":{"href":"https://github.com/octokit/octokit.net/pull/1185#discussion_r57902468"},"pull_request":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/1185"}}},"pull_request":{"url":"https://api.github.com/repos/octokit/octokit.net/pulls/1185","id":62700769,"html_url":"https://github.com/octokit/octokit.net/pull/1185","diff_url":"https://github.com/octokit/octokit.net/pull/1185.diff","patch_url":"https://github.com/octokit/octokit.net/pull/1185.patch","issue_url":"https://api.github.com/repos/octokit/octokit.net/issues/1185","number":1185,"state":"open","locked":false,"title":"Implemented Lock/Unlock Functionality for Issues","user":{"login":"prayankmathur","id":11440349,"avatar_url":"https://avatars.githubusercontent.com/u/11440349?v=3","gravatar_id":"","url":"https://api.github.com/users/prayankmathur","html_url":"https://github.com/prayankmathur","followers_url":"https://api.github.com/users/prayankmathur/followers","following_url":"https://api.github.com/users/prayankmathur/following{/other_user}","gists_url":"https://api.github.com/users/prayankmathur/gists{/gist_id}","starred_url":"https://api.github.com/users/prayankmathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prayankmathur/subscriptions","organizations_url":"https://api.github.com/users/prayankmathur/orgs","repos_url":"https://api.github.com/users/prayankmathur/repos","events_url":"https://api.github.com/users/prayankmathur/events{/privacy}","received_events_url":"https://api.github.com/users/prayankmathur/received_events","type":"User","site_admin":false},"body":"@shiftkey \r\nI have added the unit and integration tests for issue #896 . however the build is not running successfully. ","created_at":"2016-03-14T05:03:28Z","updated_at":"2016-03-30T14:54:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de8d1469e5e59a18d083a6c2b660859f796e213a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/octokit/octokit.net/pulls/1185/commits","review_comments_url":"https://api.github.com/repos/octokit/octokit.net/pulls/1185/comments","review_comment_url":"https://api.github.com/repos/octokit/octokit.net/pulls/comments{/number}","comments_url":"https://api.github.com/repos/octokit/octokit.net/issues/1185/comments","statuses_url":"https://api.github.com/repos/octokit/octokit.net/statuses/73240390ca42f9148f52815673a604db6425fb22","head":{"label":"prayankmathur:issue896","ref":"issue896","sha":"73240390ca42f9148f52815673a604db6425fb22","user":{"login":"prayankmathur","id":11440349,"avatar_url":"https://avatars.githubusercontent.com/u/11440349?v=3","gravatar_id":"","url":"https://api.github.com/users/prayankmathur","html_url":"https://github.com/prayankmathur","followers_url":"https://api.github.com/users/prayankmathur/followers","following_url":"https://api.github.com/users/prayankmathur/following{/other_user}","gists_url":"https://api.github.com/users/prayankmathur/gists{/gist_id}","starred_url":"https://api.github.com/users/prayankmathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prayankmathur/subscriptions","organizations_url":"https://api.github.com/users/prayankmathur/orgs","repos_url":"https://api.github.com/users/prayankmathur/repos","events_url":"https://api.github.com/users/prayankmathur/events{/privacy}","received_events_url":"https://api.github.com/users/prayankmathur/received_events","type":"User","site_admin":false},"repo":{"id":53566661,"name":"octokit.net","full_name":"prayankmathur/octokit.net","owner":{"login":"prayankmathur","id":11440349,"avatar_url":"https://avatars.githubusercontent.com/u/11440349?v=3","gravatar_id":"","url":"https://api.github.com/users/prayankmathur","html_url":"https://github.com/prayankmathur","followers_url":"https://api.github.com/users/prayankmathur/followers","following_url":"https://api.github.com/users/prayankmathur/following{/other_user}","gists_url":"https://api.github.com/users/prayankmathur/gists{/gist_id}","starred_url":"https://api.github.com/users/prayankmathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prayankmathur/subscriptions","organizations_url":"https://api.github.com/users/prayankmathur/orgs","repos_url":"https://api.github.com/users/prayankmathur/repos","events_url":"https://api.github.com/users/prayankmathur/events{/privacy}","received_events_url":"https://api.github.com/users/prayankmathur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prayankmathur/octokit.net","description":"A GitHub API client library for .NET ","fork":true,"url":"https://api.github.com/repos/prayankmathur/octokit.net","forks_url":"https://api.github.com/repos/prayankmathur/octokit.net/forks","keys_url":"https://api.github.com/repos/prayankmathur/octokit.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prayankmathur/octokit.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prayankmathur/octokit.net/teams","hooks_url":"https://api.github.com/repos/prayankmathur/octokit.net/hooks","issue_events_url":"https://api.github.com/repos/prayankmathur/octokit.net/issues/events{/number}","events_url":"https://api.github.com/repos/prayankmathur/octokit.net/events","assignees_url":"https://api.github.com/repos/prayankmathur/octokit.net/assignees{/user}","branches_url":"https://api.github.com/repos/prayankmathur/octokit.net/branches{/branch}","tags_url":"https://api.github.com/repos/prayankmathur/octokit.net/tags","blobs_url":"https://api.github.com/repos/prayankmathur/octokit.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prayankmathur/octokit.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prayankmathur/octokit.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/prayankmathur/octokit.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prayankmathur/octokit.net/statuses/{sha}","languages_url":"https://api.github.com/repos/prayankmathur/octokit.net/languages","stargazers_url":"https://api.github.com/repos/prayankmathur/octokit.net/stargazers","contributors_url":"https://api.github.com/repos/prayankmathur/octokit.net/contributors","subscribers_url":"https://api.github.com/repos/prayankmathur/octokit.net/subscribers","subscription_url":"https://api.github.com/repos/prayankmathur/octokit.net/subscription","commits_url":"https://api.github.com/repos/prayankmathur/octokit.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/prayankmathur/octokit.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/prayankmathur/octokit.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/prayankmathur/octokit.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/prayankmathur/octokit.net/contents/{+path}","compare_url":"https://api.github.com/repos/prayankmathur/octokit.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prayankmathur/octokit.net/merges","archive_url":"https://api.github.com/repos/prayankmathur/octokit.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prayankmathur/octokit.net/downloads","issues_url":"https://api.github.com/repos/prayankmathur/octokit.net/issues{/number}","pulls_url":"https://api.github.com/repos/prayankmathur/octokit.net/pulls{/number}","milestones_url":"https://api.github.com/repos/prayankmathur/octokit.net/milestones{/number}","notifications_url":"https://api.github.com/repos/prayankmathur/octokit.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prayankmathur/octokit.net/labels{/name}","releases_url":"https://api.github.com/repos/prayankmathur/octokit.net/releases{/id}","deployments_url":"https://api.github.com/repos/prayankmathur/octokit.net/deployments","created_at":"2016-03-10T08:08:04Z","updated_at":"2016-03-10T08:08:07Z","pushed_at":"2016-03-30T10:53:16Z","git_url":"git://github.com/prayankmathur/octokit.net.git","ssh_url":"git@github.com:prayankmathur/octokit.net.git","clone_url":"https://github.com/prayankmathur/octokit.net.git","svn_url":"https://github.com/prayankmathur/octokit.net","homepage":null,"size":83049,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"octokit:master","ref":"master","sha":"9e4435a6f50d75b35e616168da970c02a18b924b","user":{"login":"octokit","id":3430433,"avatar_url":"https://avatars.githubusercontent.com/u/3430433?v=3","gravatar_id":"","url":"https://api.github.com/users/octokit","html_url":"https://github.com/octokit","followers_url":"https://api.github.com/users/octokit/followers","following_url":"https://api.github.com/users/octokit/following{/other_user}","gists_url":"https://api.github.com/users/octokit/gists{/gist_id}","starred_url":"https://api.github.com/users/octokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokit/subscriptions","organizations_url":"https://api.github.com/users/octokit/orgs","repos_url":"https://api.github.com/users/octokit/repos","events_url":"https://api.github.com/users/octokit/events{/privacy}","received_events_url":"https://api.github.com/users/octokit/received_events","type":"Organization","site_admin":false},"repo":{"id":7528679,"name":"octokit.net","full_name":"octokit/octokit.net","owner":{"login":"octokit","id":3430433,"avatar_url":"https://avatars.githubusercontent.com/u/3430433?v=3","gravatar_id":"","url":"https://api.github.com/users/octokit","html_url":"https://github.com/octokit","followers_url":"https://api.github.com/users/octokit/followers","following_url":"https://api.github.com/users/octokit/following{/other_user}","gists_url":"https://api.github.com/users/octokit/gists{/gist_id}","starred_url":"https://api.github.com/users/octokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokit/subscriptions","organizations_url":"https://api.github.com/users/octokit/orgs","repos_url":"https://api.github.com/users/octokit/repos","events_url":"https://api.github.com/users/octokit/events{/privacy}","received_events_url":"https://api.github.com/users/octokit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/octokit/octokit.net","description":"A GitHub API client library for .NET ","fork":false,"url":"https://api.github.com/repos/octokit/octokit.net","forks_url":"https://api.github.com/repos/octokit/octokit.net/forks","keys_url":"https://api.github.com/repos/octokit/octokit.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octokit/octokit.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octokit/octokit.net/teams","hooks_url":"https://api.github.com/repos/octokit/octokit.net/hooks","issue_events_url":"https://api.github.com/repos/octokit/octokit.net/issues/events{/number}","events_url":"https://api.github.com/repos/octokit/octokit.net/events","assignees_url":"https://api.github.com/repos/octokit/octokit.net/assignees{/user}","branches_url":"https://api.github.com/repos/octokit/octokit.net/branches{/branch}","tags_url":"https://api.github.com/repos/octokit/octokit.net/tags","blobs_url":"https://api.github.com/repos/octokit/octokit.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octokit/octokit.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octokit/octokit.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/octokit/octokit.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octokit/octokit.net/statuses/{sha}","languages_url":"https://api.github.com/repos/octokit/octokit.net/languages","stargazers_url":"https://api.github.com/repos/octokit/octokit.net/stargazers","contributors_url":"https://api.github.com/repos/octokit/octokit.net/contributors","subscribers_url":"https://api.github.com/repos/octokit/octokit.net/subscribers","subscription_url":"https://api.github.com/repos/octokit/octokit.net/subscription","commits_url":"https://api.github.com/repos/octokit/octokit.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/octokit/octokit.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/octokit/octokit.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/octokit/octokit.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/octokit/octokit.net/contents/{+path}","compare_url":"https://api.github.com/repos/octokit/octokit.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octokit/octokit.net/merges","archive_url":"https://api.github.com/repos/octokit/octokit.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octokit/octokit.net/downloads","issues_url":"https://api.github.com/repos/octokit/octokit.net/issues{/number}","pulls_url":"https://api.github.com/repos/octokit/octokit.net/pulls{/number}","milestones_url":"https://api.github.com/repos/octokit/octokit.net/milestones{/number}","notifications_url":"https://api.github.com/repos/octokit/octokit.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octokit/octokit.net/labels{/name}","releases_url":"https://api.github.com/repos/octokit/octokit.net/releases{/id}","deployments_url":"https://api.github.com/repos/octokit/octokit.net/deployments","created_at":"2013-01-09T20:48:45Z","updated_at":"2016-03-29T00:51:10Z","pushed_at":"2016-03-30T12:51:08Z","git_url":"git://github.com/octokit/octokit.net.git","ssh_url":"git@github.com:octokit/octokit.net.git","clone_url":"https://github.com/octokit/octokit.net.git","svn_url":"https://github.com/octokit/octokit.net","homepage":null,"size":90114,"stargazers_count":913,"watchers_count":913,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":451,"mirror_url":null,"open_issues_count":131,"forks":451,"open_issues":131,"watchers":913,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/1185"},"html":{"href":"https://github.com/octokit/octokit.net/pull/1185"},"issue":{"href":"https://api.github.com/repos/octokit/octokit.net/issues/1185"},"comments":{"href":"https://api.github.com/repos/octokit/octokit.net/issues/1185/comments"},"review_comments":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/1185/comments"},"review_comment":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/1185/commits"},"statuses":{"href":"https://api.github.com/repos/octokit/octokit.net/statuses/73240390ca42f9148f52815673a604db6425fb22"}}}}