def create(*args)
      arguments(args, required: [:org_name]) do
        assert_required REQUIRED_PARAMS
      end

      post_request("/orgs/#{arguments.org_name}/hooks", arguments.params)
    end
def create(*args)
      arguments(args, required: [:org_name]) do
        assert_required REQUIRED_PARAMS
      end

      post_request("/orgs/#{arguments.org_name}/hooks", arguments.params)
    end
Create a hook

 @see https://developer.github.com/v3/orgs/hooks/#create-a-hook

 @param [Hash] params
 @input params [String] :name
   Required. The name of the service that is being called.
 @input params [Hash] :config
   Required. Key/value pairs to provide settings for this hook.
   These settings vary between the services and are defined in
   the github-services repository. Booleans are stored internally
   as "1" for true, and "0" for false. Any JSON true/false values
   will be converted automatically.
 @input params [Array] :events
   Determines what events the hook is triggered for. Default: ["push"]
 @input params [Boolean] :active
   Determines whether the hook is actually triggered on pushes.

 To create a webhook, the following fields are required by the config:

 @input config [String] :url
   A required string defining the URL to which the payloads
   will be delivered.
 @input config [String] :content_type
   An optional string defining the media type used to serialize
   the payloads. Supported values include json and form.
   The default is form.
 @input config [String] :secret
   An optional string that’s passed with the HTTP requests as
   an X-Hub-Signature header. The value of this header is
   computed as the HMAC hex digest of the body,
   using the secret as the key.
 @input config [String] :insecure_ssl
   An optional string that determines whether the SSL certificate
   of the host for url will be verified when delivering payloads.
   Supported values include "0" (verification is performed) and
   "1" (verification is not performed). The default is "0".or instance, if the library doesn't get updated to permit a given parameter the api call won't work, however if we skip permission all together, the endpoint should always work provided the actual resource path doesn't change. I'm in the process of completely removing the permit functionality.

 @example
   github = Github.new
   github.orgs.hooks.create 'org-name',
     name:  "web",
     active: true,
     config: {
       url: "http://something.com/webhook"
     }
   }

 @api public