Convos::Plugin::Bot::Action::Github - Act on GitHub webhooks

  1. SYNOPSIS
    1. Config file
    2. Github webhook config
  2. DESCRIPTION
  3. ATTRIBUTES
    1. description
  4. METHODS
    1. handle_webhook_github_event
  5. SEE ALSO

SYNOPSIS

Config file

---
actions:
- class: Convos::Plugin::Bot::Action::Github
  repositories:
    'convos-chat/convos':
    - events: [ create, fork, issues, milestone, pull_request, star ]
      to: 'irc-localhost/#convos'

Github webhook config

Github have to be configured to send webhooks to Convos.

DESCRIPTION

Convos::Plugin::Bot::Action::Github is enables Convos to receive and act on GitHub webhooks.

ATTRIBUTES

description

See "description" in Convos::Plugin::Bot::Action.

METHODS

handle_webhook_github_event

my $res = $action->handle_webhook_github_event($event_name, $payload);

Will try to render a message based on a GitHub event and payload.

SEE ALSO

Convos::Plugin::Bot.