@webapi_check_local_site
    @webapi_login_required
    @webapi_response_errors(DOES_NOT_EXIST, INVALID_FORM_DATA,
                            PERMISSION_DENIED, NOT_LOGGED_IN)
    @webapi_request_fields(
        required=BaseReviewGeneralCommentResource.REQUIRED_CREATE_FIELDS,
        optional=BaseReviewGeneralCommentResource.OPTIONAL_CREATE_FIELDS,
        allow_unknown=True
    )
    def create(self, request, *args, **kwargs):
        """Creates a general comment on a review.

        This will create a new comment on a review. The comment contains text
        only.
        """
        try:
            review = resources.review.get_object(request, *args, **kwargs)
        except __HOLE__:
            return DOES_NOT_EXIST

        if not resources.review.has_modify_permissions(request, review):
            return self.get_no_access_error(request.user)

        new_comment = self.create_comment(fields=(), review=review, **kwargs)
        review.general_comments.add(new_comment)

        return 201, {
            self.item_result_key: new_comment,
        }
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/resources/review_general_comment.py/ReviewGeneralCommentResource.create