Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

A Lita handler for sending you messages about GitHub events.

Notifications You must be signed in to change notification settings

zenedge/lita-github-issues

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lita Github Issues

This is a Lita handler for assigning labels and users to github pull-requests, based on statuses, as well as notifying in slack #channel.

Installation

currently still not released to gemfiles

Add lita-github-issues to your Lita instance's Gemfile:

gem "lita-github-pinger", github: "zenedge/lita-github-issues", branch: "master"

Configuration

Add Github Webhook for http://yourlitaapp.herokuapp.com/ghping so bot would be notified, when and which PRs to check.

config.handlers.github_pinger.default_channel = "bots" # Channel where message about Failed, Passed PR will be posted
config.handlers.github_pinger.github_token = "" # Oauth token for github PR statuses
config.handlers.github_pinger.required_passes = %w(tests integration) # contexts of statuses that need to pass/fail for notification
config.handlers.github_pinger.fail_label = "needs-fixing" # which label to assign when PR is marked failed
config.handlers.github_pinger.review_label = "needs-review" # which label to assign when PR is marked success
config.handlers.github_pinger.assign_reviewer = "Terry" # github user name of user to assign which will do the reviewing
config.handlers.github_pinger.notify_once = true # Notifies once or for each status change
config.handlers.github_pinger.engineers = { # Information about engineers, to link between slack and github accounts.
  "James" => {
    usernames: {
      slack: "james",
      github: "bond"
    }
  }
}

About

A Lita handler for sending you messages about GitHub events.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%