zulip/zerver/webhooks/gitlab/fixtures
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
..
build_created.json
build_started.json
build_succeeded.json
issue_hook__confidential_issue_closed.json
issue_hook__confidential_issue_created_with_assignee.json
issue_hook__confidential_issue_created_with_hidden_comment_in_description.json
issue_hook__confidential_issue_created_without_assignee.json
issue_hook__confidential_issue_reopened.json
issue_hook__confidential_issue_updated.json
issue_hook__issue_closed.json
issue_hook__issue_created_with_assignee.json
issue_hook__issue_created_with_hidden_comment_in_description.json
issue_hook__issue_created_with_three_assignees.json
issue_hook__issue_created_with_two_assignees.json
issue_hook__issue_created_without_assignee.json
issue_hook__issue_opened_with_null_description.json
issue_hook__issue_reopened.json
issue_hook__issue_updated.json
job_hook__build_created.json
merge_request_hook__merge_request_added_commit.json
merge_request_hook__merge_request_approved.json
merge_request_hook__merge_request_closed.json
merge_request_hook__merge_request_created_with_assignee.json
merge_request_hook__merge_request_created_with_multiple_assignees.json
merge_request_hook__merge_request_created_without_assignee.json
merge_request_hook__merge_request_merged.json
merge_request_hook__merge_request_reopened.json
merge_request_hook__merge_request_unapproved.json
merge_request_hook__merge_request_updated.json
note_hook__commit_note.json
note_hook__confidential_issue_note.json
note_hook__issue_note.json
note_hook__merge_request_note.json
note_hook__snippet_note.json
pipeline_hook__pipeline_pending.json
pipeline_hook__pipeline_started.json
pipeline_hook__pipeline_succeeded.json
pipeline_hook__pipline_succeeded_with_artifacts.json
push_hook.json
push_hook__push_commits_more_than_limit.json
push_hook__push_local_branch_without_commits.json
push_hook__push_multiple_committers.json
push_hook__push_multiple_committers_with_others.json
push_hook__remove_branch.json
repository_update.json
system_hook__merge_request_closed.json
system_hook__merge_request_created_with_assignee.json
system_hook__merge_request_created_without_assignee.json
system_hook__merge_request_merged.json
system_hook__push_hook.json
tag_push_hook__add_tag.json
tag_push_hook__remove_tag.json
test_hook__issue_test_payload.json
wiki_page_hook__wiki_page_edited.json
wiki_page_hook__wiki_page_opened.json