mirror of https://github.com/zulip/zulip.git
minor: Request parameter should be of type HttpRequest.
This commit is contained in:
parent
80a7c16baf
commit
31dce7c87c
|
@ -368,7 +368,7 @@ EVENT_FUNCTION_MAPPER = {
|
||||||
@api_key_only_webhook_view('GitHub')
|
@api_key_only_webhook_view('GitHub')
|
||||||
@has_request_variables
|
@has_request_variables
|
||||||
def api_github_webhook(
|
def api_github_webhook(
|
||||||
request: HttpResponse, user_profile: UserProfile, payload: Dict[str, Any]=REQ(argument_type='body'),
|
request: HttpRequest, user_profile: UserProfile, payload: Dict[str, Any]=REQ(argument_type='body'),
|
||||||
stream: Text=REQ(default='github'), branches: Text=REQ(default=None)) -> HttpResponse:
|
stream: Text=REQ(default='github'), branches: Text=REQ(default=None)) -> HttpResponse:
|
||||||
event = get_event(request, payload, branches)
|
event = get_event(request, payload, branches)
|
||||||
if event is not None:
|
if event is not None:
|
||||||
|
|
Loading…
Reference in New Issue