webhaak package

Submodules

webhaak.incoming module

Make sense of the incoming webhook requests.

webhaak.incoming.determine_task(config, payload, hook_info, event_info)

Parse the incoming webhook information and assemble the hook_info.

Parameters:
  • config (dict) – the projects configuration

  • payload (dict) – dictionary containing the incoming webhook payload

  • hook_info (dict) – dictionary containing the webhook configuration

  • event_info (str) – message containing information about the event, to be used to log and as feedback to user

webhaak.incoming.get_commits_info(payload, hook_info)

Assemble extra information about the commits.

Parameters:
  • payload (dict) – dictionary containing the incoming webhook payload

  • hook_info (dict) – dictionary containing the webhook configuration

webhaak.incoming.handle_bitbucket_actor(payload, hook_info, event_info, config)

Assemble information about the author of this action.

Parameters:
  • payload (dict) – dictionary containing the incoming webhook payload

  • hook_info (dict) – dictionary containing the webhook configuration

  • event_info (str) – message containing information about the event, to be used to log and as feedback to user

  • config (dict) – the projects configuration

webhaak.incoming.handle_bitbucket_pullrequest(payload, hook_info)

Handle an incoming pull request hook from BitBucket.

Parameters:
  • payload (dict) – dictionary containing the incoming webhook payload

  • hook_info (dict) – dictionary containing the webhook configuration

webhaak.incoming.handle_bitbucket_push(payload, hook_info)

Handle an incoming Git push hook from BitBucket.

Parameters:
  • payload (dict) – dictionary containing the incoming webhook payload

  • hook_info (dict) – dictionary containing the webhook configuration

webhaak.incoming.handle_git_actor(payload, hook_info, event_info)

Assemble information about the author of this action.

Parameters:
  • payload (dict) – dictionary containing the incoming webhook payload

  • hook_info (dict) – dictionary containing the webhook configuration

  • event_info (str) – message containing information about the event, to be used to log and as feedback to user

webhaak.incoming.handle_inoreader_rss_item(payload, hook_info, event_info)
webhaak.incoming.handle_sentry_message(payload, hook_info, event_info)

Assemble information about the event that Sentry sent so an appropriate notification can be sent later.

Parameters:
  • payload (dict) – dictionary containing the incoming webhook payload

  • hook_info (dict) – dictionary containing the webhook configuration

  • event_info (str) – message containing information about the event, to be used to log and as feedback to user

webhaak.main module

webhaak.tasks module

Module contents

Webhaak package.