Coder Social home page Coder Social logo

tokite's Introduction

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 tokite:ridgepole:install
$ ./bin/rails tokite:ridgepole:apply
$ RAILS_ENV=test ./bin/rails 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
label:Match pull_request or issue label.label:Feature
review_state:Match pull_request_review state.review_state:/commented|approved|changes_requested/
unspecifiedMatch title or body field.review please

tokite's People

Contributors

hogelog avatar koheisg avatar ksfee684 avatar eagletmt avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.