def create_status(*args)
      arguments(args, required: [:user, :repo, :id]) do
        assert_required %w[ state ]
        permit VALID_STATUS_OPTIONS
      end
      params = arguments.params
      params['accept'] ||= PREVIEW_MEDIA

      post_request("repos/#{arguments.user}/#{arguments.repo}/deployments/#{arguments.id}/statuses", params)
    end
def create_status(*args)
      arguments(args, required: [:user, :repo, :id]) do
        assert_required %w[ state ]
        permit VALID_STATUS_OPTIONS
      end
      params = arguments.params
      params['accept'] ||= PREVIEW_MEDIA

      post_request("repos/#{arguments.user}/#{arguments.repo}/deployments/#{arguments.id}/statuses", params)
    end
Create a deployment status

 @param [Hash] params
 @option params [String] :id
   Required string. Id of the deployment being referenced.
 @option params [String] :state
   Required string. State of the deployment. Can be one of:
   pending, success, error, or failure.
 @option params [String] :target_url
   Optional string. The URL associated with the status.
 @option params [String] :description
   Optional string. A short description of the status.

 @example
  github = Github.new
  github.repos.deployments.create_status 'user-name', 'repo-name', DEPLOYMENT_ID, state: '...'

 @api public