{"action":"created","comment":{"url":"https://api.github.com/repos/octokit/octokit.net/pulls/comments/41099852","id":41099852,"diff_hunk":"@@ -0,0 +1,132 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Diagnostics;\n+using System.Linq;\n+\n+namespace Octokit\n+{\n+    /// <summary>\n+    /// Creates a Webhook for the repository.\n+    /// </summary>\n+    /// <remarks>\n+    /// To create a webhook, the following fields are required by the config:\n+    /// <list type=\"bullet\">\n+    /// <item>\n+    ///   <term>url</term>\n+    ///   <description>A required string defining the URL to which the payloads will be delivered.</description>\n+    /// </item>\n+    /// <item>\n+    ///   <term>content_type</term>\n+    ///   <description>\n+    ///     An optional string defining the media type used to serialize the payloads.Supported values include json and\n+    ///     form.The default is form.\n+    ///   </description>\n+    /// </item>\n+    /// <item>\n+    ///   <term>secret</term>\n+    ///   <description>\n+    ///     An optional string that’s passed with the HTTP requests as an X-Hub-Signature header. The value of this\n+    ///     header is computed as the HMAC hex digest of the body, using the secret as the key.\n+    ///   </description>\n+    /// </item>\n+    /// <item>\n+    ///   <term>insecure_ssl:</term>\n+    ///   <description>\n+    ///     An optional string that determines whether the SSL certificate of the host for url will be verified when \n+    ///     delivering payloads.Supported values include \"0\" (verification is performed) and \"1\" (verification is not \n+    ///     performed). The default is \"0\".\n+    ///   </description>\n+    /// </item>\n+    /// </list>\n+    /// <para>\n+    /// API: https://developer.github.com/v3/repos/hooks/#create-a-hook\n+    /// </para>\n+    /// </remarks>   \n+    [DebuggerDisplay(\"{DebuggerDisplay,nq}\")]\n+    public class NewRepositoryWebHook : NewRepositoryHook\n+    {\n+        /// <summary>\n+        /// Initializes a new instance of the<see cref=\"NewRepositoryWebHook\"/> class.   \n+        /// Using default values for ContentType, Secret and InsecureSsl.     \n+        /// </summary>\n+        /// <param name=\"name\">Use web for a webhook or use the name of a valid service. (See /hooks for the list of valid service names.)\n+        /// Use \"web\" for a webhook or use the name of a valid service. (See ","path":"Octokit/Models/Request/NewRepositoryWebHook.cs","position":53,"original_position":53,"commit_id":"8c962d89be197fba6bcff6c160c581854a66510a","original_commit_id":"8c962d89be197fba6bcff6c160c581854a66510a","user":{"login":"Haacked","id":19977,"avatar_url":"https://avatars.githubusercontent.com/u/19977?v=3","gravatar_id":"","url":"https://api.github.com/users/Haacked","html_url":"https://github.com/Haacked","followers_url":"https://api.github.com/users/Haacked/followers","following_url":"https://api.github.com/users/Haacked/following{/other_user}","gists_url":"https://api.github.com/users/Haacked/gists{/gist_id}","starred_url":"https://api.github.com/users/Haacked/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Haacked/subscriptions","organizations_url":"https://api.github.com/users/Haacked/orgs","repos_url":"https://api.github.com/users/Haacked/repos","events_url":"https://api.github.com/users/Haacked/events{/privacy}","received_events_url":"https://api.github.com/users/Haacked/received_events","type":"User","site_admin":true},"body":"This line looks like it doesn't belong.","created_at":"2015-10-04T17:17:26Z","updated_at":"2015-10-04T17:17:26Z","html_url":"https://github.com/octokit/octokit.net/pull/917#discussion_r41099852","pull_request_url":"https://api.github.com/repos/octokit/octokit.net/pulls/917","_links":{"self":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/comments/41099852"},"html":{"href":"https://github.com/octokit/octokit.net/pull/917#discussion_r41099852"},"pull_request":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/917"}}},"pull_request":{"url":"https://api.github.com/repos/octokit/octokit.net/pulls/917","id":46164146,"html_url":"https://github.com/octokit/octokit.net/pull/917","diff_url":"https://github.com/octokit/octokit.net/pull/917.diff","patch_url":"https://github.com/octokit/octokit.net/pull/917.patch","issue_url":"https://api.github.com/repos/octokit/octokit.net/issues/917","number":917,"state":"open","locked":false,"title":"Add helper class for creating web hooks","user":{"login":"alfhenrik","id":1035315,"avatar_url":"https://avatars.githubusercontent.com/u/1035315?v=3","gravatar_id":"","url":"https://api.github.com/users/alfhenrik","html_url":"https://github.com/alfhenrik","followers_url":"https://api.github.com/users/alfhenrik/followers","following_url":"https://api.github.com/users/alfhenrik/following{/other_user}","gists_url":"https://api.github.com/users/alfhenrik/gists{/gist_id}","starred_url":"https://api.github.com/users/alfhenrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfhenrik/subscriptions","organizations_url":"https://api.github.com/users/alfhenrik/orgs","repos_url":"https://api.github.com/users/alfhenrik/repos","events_url":"https://api.github.com/users/alfhenrik/events{/privacy}","received_events_url":"https://api.github.com/users/alfhenrik/received_events","type":"User","site_admin":false},"body":"Introducing `NewRepositoryWebHook`, a new strongly typed class that derives from the existing `NewRepositoryHook` class but adds properties and constructor parameters for config settings that should be passed to the API when creating a new web hook. These settings are merged with the config settings that are specific to the web service the web hook will be interacting with (as per [https://api.github.com/hooks](https://api.github.com/hooks)).\r\n\r\nFixes octokit/octokit.net#914","created_at":"2015-09-28T14:35:51Z","updated_at":"2015-10-04T17:17:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d02e5e9498f4f943ddef361bd5352962124d8076","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/octokit/octokit.net/pulls/917/commits","review_comments_url":"https://api.github.com/repos/octokit/octokit.net/pulls/917/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/917/comments","statuses_url":"https://api.github.com/repos/octokit/octokit.net/statuses/8c962d89be197fba6bcff6c160c581854a66510a","head":{"label":"alfhenrik:feature-webhookhelper","ref":"feature-webhookhelper","sha":"8c962d89be197fba6bcff6c160c581854a66510a","user":{"login":"alfhenrik","id":1035315,"avatar_url":"https://avatars.githubusercontent.com/u/1035315?v=3","gravatar_id":"","url":"https://api.github.com/users/alfhenrik","html_url":"https://github.com/alfhenrik","followers_url":"https://api.github.com/users/alfhenrik/followers","following_url":"https://api.github.com/users/alfhenrik/following{/other_user}","gists_url":"https://api.github.com/users/alfhenrik/gists{/gist_id}","starred_url":"https://api.github.com/users/alfhenrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfhenrik/subscriptions","organizations_url":"https://api.github.com/users/alfhenrik/orgs","repos_url":"https://api.github.com/users/alfhenrik/repos","events_url":"https://api.github.com/users/alfhenrik/events{/privacy}","received_events_url":"https://api.github.com/users/alfhenrik/received_events","type":"User","site_admin":false},"repo":{"id":14002524,"name":"octokit.net","full_name":"alfhenrik/octokit.net","owner":{"login":"alfhenrik","id":1035315,"avatar_url":"https://avatars.githubusercontent.com/u/1035315?v=3","gravatar_id":"","url":"https://api.github.com/users/alfhenrik","html_url":"https://github.com/alfhenrik","followers_url":"https://api.github.com/users/alfhenrik/followers","following_url":"https://api.github.com/users/alfhenrik/following{/other_user}","gists_url":"https://api.github.com/users/alfhenrik/gists{/gist_id}","starred_url":"https://api.github.com/users/alfhenrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfhenrik/subscriptions","organizations_url":"https://api.github.com/users/alfhenrik/orgs","repos_url":"https://api.github.com/users/alfhenrik/repos","events_url":"https://api.github.com/users/alfhenrik/events{/privacy}","received_events_url":"https://api.github.com/users/alfhenrik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alfhenrik/octokit.net","description":"A GitHub API client library for .NET ","fork":true,"url":"https://api.github.com/repos/alfhenrik/octokit.net","forks_url":"https://api.github.com/repos/alfhenrik/octokit.net/forks","keys_url":"https://api.github.com/repos/alfhenrik/octokit.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alfhenrik/octokit.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alfhenrik/octokit.net/teams","hooks_url":"https://api.github.com/repos/alfhenrik/octokit.net/hooks","issue_events_url":"https://api.github.com/repos/alfhenrik/octokit.net/issues/events{/number}","events_url":"https://api.github.com/repos/alfhenrik/octokit.net/events","assignees_url":"https://api.github.com/repos/alfhenrik/octokit.net/assignees{/user}","branches_url":"https://api.github.com/repos/alfhenrik/octokit.net/branches{/branch}","tags_url":"https://api.github.com/repos/alfhenrik/octokit.net/tags","blobs_url":"https://api.github.com/repos/alfhenrik/octokit.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alfhenrik/octokit.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alfhenrik/octokit.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/alfhenrik/octokit.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alfhenrik/octokit.net/statuses/{sha}","languages_url":"https://api.github.com/repos/alfhenrik/octokit.net/languages","stargazers_url":"https://api.github.com/repos/alfhenrik/octokit.net/stargazers","contributors_url":"https://api.github.com/repos/alfhenrik/octokit.net/contributors","subscribers_url":"https://api.github.com/repos/alfhenrik/octokit.net/subscribers","subscription_url":"https://api.github.com/repos/alfhenrik/octokit.net/subscription","commits_url":"https://api.github.com/repos/alfhenrik/octokit.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/alfhenrik/octokit.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/alfhenrik/octokit.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/alfhenrik/octokit.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/alfhenrik/octokit.net/contents/{+path}","compare_url":"https://api.github.com/repos/alfhenrik/octokit.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alfhenrik/octokit.net/merges","archive_url":"https://api.github.com/repos/alfhenrik/octokit.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alfhenrik/octokit.net/downloads","issues_url":"https://api.github.com/repos/alfhenrik/octokit.net/issues{/number}","pulls_url":"https://api.github.com/repos/alfhenrik/octokit.net/pulls{/number}","milestones_url":"https://api.github.com/repos/alfhenrik/octokit.net/milestones{/number}","notifications_url":"https://api.github.com/repos/alfhenrik/octokit.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alfhenrik/octokit.net/labels{/name}","releases_url":"https://api.github.com/repos/alfhenrik/octokit.net/releases{/id}","created_at":"2013-10-30T23:21:45Z","updated_at":"2015-05-08T08:31:12Z","pushed_at":"2015-10-04T09:28:04Z","git_url":"git://github.com/alfhenrik/octokit.net.git","ssh_url":"git@github.com:alfhenrik/octokit.net.git","clone_url":"https://github.com/alfhenrik/octokit.net.git","svn_url":"https://github.com/alfhenrik/octokit.net","homepage":null,"size":58150,"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":"7f2ad110efaba82f926572b5e151019b421e97d3","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}","created_at":"2013-01-09T20:48:45Z","updated_at":"2015-10-02T17:00:19Z","pushed_at":"2015-10-04T13:13:11Z","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":70969,"stargazers_count":756,"watchers_count":756,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":360,"mirror_url":null,"open_issues_count":80,"forks":360,"open_issues":80,"watchers":756,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/917"},"html":{"href":"https://github.com/octokit/octokit.net/pull/917"},"issue":{"href":"https://api.github.com/repos/octokit/octokit.net/issues/917"},"comments":{"href":"https://api.github.com/repos/octokit/octokit.net/issues/917/comments"},"review_comments":{"href":"https://api.github.com/repos/octokit/octokit.net/pulls/917/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/917/commits"},"statuses":{"href":"https://api.github.com/repos/octokit/octokit.net/statuses/8c962d89be197fba6bcff6c160c581854a66510a"}}}}