Giter Club home page Giter Club logo

revad-bot's Introduction

<<<<<<< HEAD

REVAD-bot

Refer from this website in myhubot. http://qiita.com/kmdsbng/items/fdc069048b5f0d07295e

注意 $ cat external-scripts.json [ "hubot-hello-world", "hubot-diagnostics", "hubot-help", "hubot-heroku-keepalive", "hubot-google-images", "hubot-google-translate", "hubot-pugme", "hubot-maps", "hubot-redis-brain", "hubot-rules", "hubot-shipit", "hubot-youtube" ] ここでhubot-redis-brainを削除でないと,メモリエラーをずっと訴えてくる...

参考資料 Hello worldを言わせるまで http://qiita.com/makoto1007/items/8ce93c8d418b25988b03

revad-bot

個々のプロジェクトファイルが独立したプロジェクトでのレビュー推進用bot

必要なもの

GitHubアカウント

setting -> Integrationsからトークンを生成する。

Slack

App DirectoryからHubotをインストールしトークンを生成する。

実行前に設定する変数

Windowsなら$ set ~~=xx, Mac,Linuxは$ export ~~=xxで設定、 HerokuならSetting->Reveal Config Varsから

  • HUBOT_ADAPTER=slack,
  • HUBOT_SLACK_TOKEN=Slackで生成したトークン,
  • HUBOT_SLACK_TEAM=参加させるSlackのチーム名,
  • HUBOT_SLACK_BOTNAME=revad-bot,
  • HUBOT_GITHUB_TOKEN=GitHubのトークン,

実行方法

$ ./bin/hubot

scripts/内構成

exapmle.coffee

初期のサンプルコード

hello.coffee

動作テスト用:Helloと送ると"Hello World!"と返す

github-commiters.coffee

https://github.com/github/hubot-scripts/blob/master/src/scripts/github-commiters.coffee から利用。

revad-bot repo commiters <repo>

と送るとコミッター情報を返す。 <repo>はリポジトリ名(例:OSSresearch-SuperTeam/REVAD-bot)

github-pulls.coffee

プルリクエストのアサインされた開発者を表示(closeされたもののみ)

revad-bot repo pulls <repo>

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.