octomachinery.github.utils.event_utils module#

Utility helpers for CLI.

octomachinery.github.utils.event_utils.augment_http_headers(headers)[source]#

Add fake HTTP headers for the missing positions.

octomachinery.github.utils.event_utils.make_http_headers_from_event(event_name)[source]#

Generate fake HTTP headers with the given event name.

octomachinery.github.utils.event_utils.parse_event_stub_from_fd(event_file_fd)[source]#

Read event with HTTP headers as CIMultiDict instance.

octomachinery.github.utils.event_utils.validate_http_headers(headers)[source]#

Verify that HTTP headers look sane.