Coder Social home page Coder Social logo

minibot's Introduction

Minibot

Minibot is a IRC bot employed by the Minishift team to work on the #minishift channel on irc.freenode.net.

Usage

Minishift stand-ups

Minibot drives the daily stand-ups of the Minishift team on #minishift on irc.freenode.net. For this it utilizes the hubot-standup plugin.

In order to add and remove users to the stand-up hubot-auth is used.

To add a user to the stand-ups:

minibot <user> has a minishift member role

To remove a user from the stand-ups:

minibot <user> doesn’t have a minishift member role

To list the roles of a user:

minibot what roles does <user> have

Sprint backlog

Sprint backlogs in comma separated format can be added to Minibot brain via a webhook:

curl -X POST http://<IP>:9009/hubot/sprint -d sprint=134 -d data="$(cat sprint-134.csv)"

Once uploaded the backlog can be printed via the Minibot command:

minibot print sprint <id>

An issue can be marked as completed by:

minibot mark issue <issue-id> of sprint <sprint-id> completed

To see which sprints Minibot knows about:

minibot list known sprints

CentOS CI

You can ask for pull request artifacts from a CentOS CI pull request build by:

minibot artifacts for pr <pr-id>

CI notifications

At the moment Travis CI, AppVeyor and Circle CI send notifications to Minibot. The required webhooks are configured in .travis.yml, appveyor.yml resp. circle.yml in the Minishift repository.

Misc

Other than that the following hubot scripts are installed:

Developing

In order to develop on Minibot you need to set the environment variables MINIBOT_REDIS_URL and MINIBOT_IRC_PASS.

Building the Minibot image

$ make build

Running the Minibot image

$ make run

Testing webhooks

The testdata directory contains some sample JSON payload files to test the Minibot webhook integration. To test a webhook, execute the following against your local instance of Minibot:

$ cd testdata
$ curl http://<IP>:9009/hubot/travis-ci --data-urlencode [email protected]
# or
$ curl http://<IP>:9009/hubot/circleci -H "Content-Type: application/json" -d @circleci.json
# or
$ curl http://<IP>:9009/hubot/appveyor -H "Content-Type: application/json" -d @appveyor.json

where:

  • <IP> is the IP of your Docker daemon

Resources

minibot's People

Contributors

hferentschik avatar

Watchers

 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.