zulip/zerver/webhooks
Alex Vandiver d0c5389d60 gitlab: Fix event_name -> object_kind defaulting.
94457732c1 changed this from:

```py
event_name = payload.get("event_name", payload.get("object_kind")).tame(check_string)
```

...to:
```py
event_name = payload.get("event_name", payload["object_kind"]).tame(check_string)
```

Which causes a failure when `event_name` exists but `object_kind` does
not, since the default is evaluated first.

Switch to an `if` statement to clarify the fallbacks better.
2022-06-02 23:23:19 -07:00
..
airbrake airbrake: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
alertmanager alertmanager: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
ansibletower ansibletower: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
appfollow appfollow: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
appveyor appveyor: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
basecamp basecamp: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
beanstalk beanstalk: Move %40 kludge into authenticated_rest_api_view. 2022-05-13 20:42:20 -07:00
beeminder beeminder: Accept float for payload["goal"]["pledge"]. 2022-03-22 21:08:48 -04:00
bitbucket bitbucket: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
bitbucket2 django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00
bitbucket3 django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00
buildbot buildbot: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
canarytoken canarytoken: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
circleci circleci: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
clubhouse clubhouse: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
codeship codeship: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
crashlytics crashlytics: Strengthen types using WildValue. 2022-03-15 13:02:02 -07:00
delighted delighted: Strengthen types using WildValue. 2022-05-10 13:50:20 -07:00
deskdotcom backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
dialogflow dialogflow: Strengthen types using WildValue. 2022-05-10 13:50:20 -07:00
dropbox backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
errbit errbit: Strengthen types using WildValue. 2022-05-10 13:50:20 -07:00
flock flock: Strengthen types using WildValue. 2022-05-10 13:50:20 -07:00
freshdesk freshdesk: Remove unsafe TicketDict class. 2022-05-12 17:56:46 -07:00
freshping freshping: Strengthen types using WildValue. 2022-05-10 13:50:20 -07:00
freshstatus freshstatus: Strengthen types using WildValue. 2022-05-10 13:50:20 -07:00
front front: Fix get_body_based_on_event type. 2022-05-12 18:04:44 -07:00
gci gci: Fix get_body_based_on_event type. 2022-05-12 18:04:44 -07:00
gitea django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00
github github: Accept null for issue and pull request body. 2022-05-23 15:52:24 -07:00
gitlab gitlab: Fix event_name -> object_kind defaulting. 2022-06-02 23:23:19 -07:00
gocd backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
gogs django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00
gosquared backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
grafana backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
greenhouse backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
groove django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00
harbor backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
hellosign validator: Replace converter=orjson.loads with json_validator. 2022-03-15 13:02:02 -07:00
helloworld Remove Debian 10 support. 2022-04-26 16:32:02 -07:00
heroku backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
homeassistant backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
honeybadger/fixtures
ifttt backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
insping backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
intercom backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
jira docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
jotform backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
json backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
librato validator: Replace converter=orjson.loads with json_validator. 2022-03-15 13:02:02 -07:00
lidarr backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
mention backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
netlify django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00
newrelic backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
opbeat backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
opencollective Correctly hyphenate “non-”. 2022-04-27 22:10:31 -07:00
opsgenie webhooks: Correct OpsGenie to Opsgenie. 2022-02-07 18:51:06 -08:00
pagerduty backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
papertrail backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
pingdom docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
pivotal backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
radarr backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
raygun backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
reviewboard django: Use HttpRequest.headers. 2022-05-13 20:42:20 -07:00
rollbar/fixtures
runscope/fixtures
semaphore testing: Improve backend code coverage for semaphore webhook. 2022-05-04 16:13:24 -07:00
sentry backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
slack actions: Split out zerver.actions.message_send. 2022-04-14 17:14:34 -07:00
slack_incoming slack_incoming: Process request payload directly in view.py. 2022-04-28 14:45:38 -07:00
solano backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
sonarqube backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
sonarr backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
splunk backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
statuspage backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
stripe backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
taiga backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
teamcity actions: Split out zerver.actions.message_send. 2022-04-14 17:14:34 -07:00
thinkst backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
transifex backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
travis docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
trello backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
updown backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
uptimerobot actions: Split out zerver.actions.message_send. 2022-04-14 17:14:34 -07:00
wordpress backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
yo actions: Split out zerver.actions.message_send. 2022-04-14 17:14:34 -07:00
zabbix actions: Split out zerver.actions.message_send. 2022-04-14 17:14:34 -07:00
zapier backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
zendesk docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
__init__.py