Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Save vendor/bundle cache on CircleCI Jun 26, 2017
app Merge pull request #43 from dchiji/pr_query_error Jul 13, 2018
bin Add rake binstub Jun 26, 2017
config
lib Version 0.4.1 Jun 12, 2018
schema
spec Merge branch 'master' into edittable_display_name Jul 6, 2018
.gitignore
.rspec Add rspec Jun 3, 2017
.ruby-version Specify ruby 2.4.1 Jun 2, 2017
Gemfile
MIT-LICENSE
README.md Update README Jun 12, 2018
Rakefile
package.json Add bulma Jun 11, 2017
tokite.gemspec Fix homepage URL in the gemspec May 29, 2018
yarn.lock Add bulma Jun 11, 2017

README.md

Tokite CircleCI Gem Version

Tokite send GitHub event (pull-request, issue and comment) to Slack.

Notification setting are personalized and customizable by query.

Installation

Tokite works as rails mountable engine.

Add this line to your rails application's Gemfile:

gem "tokite"

And mount engine.

Rails.application.routes.draw do
  mount Tokite::Engine => "/"
end

Setup database

$ ./bin/rails db:create
$ ./bin/rails app:tokite:ridgepole:install
$ ./bin/rails app:tokite:ridgepole:apply
$ RAILS_ENV=test ./bin/rails app:tokite:ridgepole:apply

Setup yarn pkg

$ ./bin/rails tokite:yarn:install

Configuration

GITHUB_CLIENT_IDGoogle+ OAuth2 client ID
GITHUB_CLIENT_SECRETGoogle+ OAuth2 client secret
GITHUB_HOST (optional)GitHub Enterprise host
SECRET_KEY_BASErails secret key
SLACK_WEBHOOK_URLSlack incoming webhook url
SLACK_NAME (optional)Slack notification user name
SLACK_ICON_EMOJI (optional)Slack notification icon
APP_HOST (optional)Application host url

Usage

Supported Event

Tokite support only below events now.

  • pull_request
  • issues
  • issue_comment

Supported query type

NameExample
Plain wordhoge fuga moge
Quoted word"hoge fuga moge"
Regular expression word/hoge|fuga|moge/
Exclude word -/(hoge|fuga|moge)/ -user:hogelog

Supported query field

NameDescriptionExample
repo:Match repository name.repo:cookpad/tokite
title:Match pull_request or issues title.title:Bug
event:Match event type pull_request, issues, issue_comment, pull_request_review, pull_request_review_comment.event:/pull_request|issues|pull_request_review|pull_request_review_comment/
body:Match body text.body:"review please"
user:Match user name.user:hogelog
review_state:Match pull_request_review state.review_state:/commented|approved|changes_requested/
unspecifiedMatch title or body field.review please
You can’t perform that action at this time.