def get_hook_trigger(content):
    """
    Return the ids of the note and discussion where the hook was triggered.

    @param content: Contents of gitlab hook
    """
    return dict(project_id=content['project']['id'], merge_request_iid=
        content['merge_request']['iid'], discussion_id=content[
        'object_attributes']['discussion_id'], note_id=content[
        'object_attributes']['id'])
