Skip to content

prashanth-sams/hubot-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hubot Slack

A chatbot for #slack using Hubot service

Hubot Slack runner

$ .bin/hubot --adapter <your_adapter_name> HUBOT_SLACK_TOKEN=xxxx-xxxx-xxxx-xxxx \
              HUBOT_GITHUB_API=https://api.github.com \
              HUBOT_GITHUB_TOKEN=xxxx \
              HUBOT_GITHUB_USER=xxxx \
              HUBOT_GITHUB_REPO=xxxx

Slack interaction

  • Let's start interacting with the bots created; let's say, hubot help
  • You can customize the bot name hubot with your_custom_bot_name. In this project, I named it as sams from bin/hubot.cmd && bin/hubot and made sure the bot name is the same while creating hubot slack token; so, my statement looks like, sams help
hubot> hubot help
hubot help - Displays all of the help commands that hubot knows about.

The list of commands that qualify under this implementation is described below, along with additional info.

Github Issues


List, Create, Close, Open and Reopen GitHub issues

Command Description
hubot issue <#number> Display an issue with specific number
hubot issue any
hubot issue any all
Lists all the open & closed issues
hubot issue any <YYYY-MM-DD>
hubot issue any all <YYYY-MM-DD>
Lists all the open & closed issues updated with specific date
hubot issue any <YYYY-MM-DD..YYYY-MM-DD>
hubot issue any all <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open & closed issues updated with specific date range
hubot issue any <#label>
hubot issue any all <#label>
Lists all the open & closed issues with specific label
hubot issue any <#label> <YYYY-MM-DD>
hubot issue any all <#label> <YYYY-MM-DD>
Lists all the open & closed issues updated with specific label and date
hubot issue any <#label> <YYYY-MM-DD..YYYY-MM-DD>
hubot issue any all <#label> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open & closed issues updated with specific label and date range
hubot issue any <#text>
hubot issue any all <#text>
Lists all the open & closed issues with specific text
hubot issue any <#text> <YYYY-MM-DD>
hubot issue any all <#text> <YYYY-MM-DD>
Lists all the open & closed issues updated with specific text and date
hubot issue any <#text> <YYYY-MM-DD..YYYY-MM-DD>
hubot issue any all <#text> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open & closed issues updated with specific text and date range
hubot issue any <assignee> Lists all the open & closed issues assigned to a known github user
hubot issue any <assignee> <YYYY-MM-DD> Lists all the open & closed issues assigned to a known github user updated with specific date
hubot issue any <assignee> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open & closed issues assigned to a known github user updated with specific date range
hubot issue any <assignee> <#label> Lists all the open & closed issues with specific label assigned to a known github user
hubot issue any <assignee> <#label> <YYYY-MM-DD> Lists all the open & closed issues updated with specific label and date assigned to a known github user
hubot issue any <assignee> <#label> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open & closed issues updated with specific label and date assigned to a known github user
hubot issue any <assignee> <#text> Lists all the open & closed issues with specific text assigned to a known github user
hubot issue any <assignee> <#text> <YYYY-MM-DD> Lists all the open & closed issues updated with specific text and date assigned to a known github user
hubot issue any <assignee> <#text> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open & closed issues updated with specific text and date range assigned to a known github user
hubot issue closed
hubot issue closed all
Lists all the closed issues
hubot issue closed <YYYY-MM-DD>
hubot issue closed all <YYYY-MM-DD>
Lists all the closed issues with specific date
hubot issue closed <YYYY-MM-DD..YYYY-MM-DD>
hubot issue closed all <YYYY-MM-DD..YYYY-MM-DD>
Lists all the closed issues with specific date range
hubot issue closed <#label>
hubot issue closed all <#label>
Lists all the closed issues with specific label
hubot issue closed <#label> <YYYY-MM-DD>
hubot issue closed all <#label> <YYYY-MM-DD>
Lists all the closed issues with specific label and date
hubot issue closed <#label> <YYYY-MM-DD..YYYY-MM-DD>
hubot issue closed all <#label> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the closed issues with specific label and date range
hubot issue closed <“text”>
hubot issue closed all <“text”>
Lists all the closed issues with specific text
hubot issue closed <“text”> <YYYY-MM-DD>
hubot issue closed all <“text”> <YYYY-MM-DD>
Lists all the closed issues with specific text and date
hubot issue closed <“text”> <YYYY-MM-DD..YYYY-MM-DD>
hubot issue closed all <“text”> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the closed issues with specific text and date range
hubot issue closed <assignee> Lists all the closed issues assigned to a known github user
hubot issue closed <assignee> <YYYY-MM-DD> Lists all the closed issues assigned to a known github user with specific date
hubot issue closed <assignee> <YYYY-MM-DD..YYYY-MM-DD> Lists all the closed issues assigned to a known github user with specific date range
hubot issue closed <assignee> <#label> Lists all the closed issues with specific label assigned to a known github user
hubot issue closed <assignee> <#label> <YYYY-MM-DD> Lists all the closed issues with specific label assigned to a known github user with specific date
hubot issue closed <assignee> <#label> <YYYY-MM-DD..YYYY-MM-DD> Lists all the closed issues with specific label assigned to a known github user with specific date range
hubot issue closed <assignee> <“text”> Lists all the closed issues with specific text assigned to a known github user
hubot issue closed <assignee> <“text”> <YYYY-MM-DD> Lists all the closed issues with specific text assigned to a known github user with specific date
hubot issue closed <assignee> <“text”> <YYYY-MM-DD..YYYY-MM-DD> Lists all the closed issues with specific text assigned to a known github user with specific date range
hubot issue open
hubot issue open all
Lists all the open issues
hubot issue open <YYYY-MM-DD>
hubot issue open all <YYYY-MM-DD>
Lists all the open issues with specific date
hubot issue open <YYYY-MM-DD..YYYY-MM-DD>
hubot issue open all <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open issues with specific date range
hubot issue open <#label>
hubot issue open all <#label>
Lists all the open issues with specific label
hubot issue open <#label> <YYYY-MM-DD>
hubot issue open all <#label> <YYYY-MM-DD>
Lists all the open issues with specific label and date
hubot issue open <#label> <YYYY-MM-DD..YYYY-MM-DD>
hubot issue open all <#label> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open issues with specific label and date range
hubot issue open <“text”>
hubot issue open all <“text”>
Lists all the open issues with specific text
hubot issue open <“text”> <YYYY-MM-DD>
hubot issue open all <“text”> <YYYY-MM-DD>
Lists all the open issues with specific text and date
hubot issue open <“text”> <YYYY-MM-DD..YYYY-MM-DD>
hubot issue open all <“text”> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open issues with specific text and date range
hubot issue open <assignee> Lists all the open issues assigned to a known github user
hubot issue open <assignee> <YYYY-MM-DD> Lists all the open issues assigned to a known github user with specific date
hubot issue open <assignee> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open issues assigned to a known github user with specific date range
hubot issue open <assignee> <#label> Lists all the open issues with specific label assigned to a known user
hubot issue open <assignee> <#label> <YYYY-MM-DD> Lists all the open issues with specific label and date assigned to a known user
hubot issue open <assignee> <#label> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open issues with specific label and date range assigned to a known user
hubot issue open <assignee> <“text”> Lists all the open issues with specific text assigned to a known user
hubot issue open <assignee> <“text”> <YYYY-MM-DD> Lists all the open issues with specific text and date assigned to a known user
hubot issue open <assignee> <“text”> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open issues with specific text and date range assigned to a known user
hubot issue close <#number> Close an existing issue
hubot issue reopen <#number> Re-open an existing issue
hubot issue create <“title”> Create an issue with title
hubot issue create <“title”> <#label> Create an issue with title and label
hubot issue create <“title”> body <{body}> Create an issue with title and body
hubot issue create <“title”> body <{body}> <#label> Create an issue with title, body, and label

Github Pull Request


List GitHub pull request(s)

Command Description
hubot pr <#number> Display a pull request with specific number
hubot pr any
hubot pr any all
Lists all the open & closed pull requests
hubot pr any <YYYY-MM-DD>
hubot pr any all <YYYY-MM-DD>
Lists all the open & closed pull requests updated with specific date
hubot pr any <YYYY-MM-DD..YYYY-MM-DD>
hubot pr any all <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open & closed pull requests updated with specific date range
hubot pr any <#label>
hubot pr any all <#label>
Lists all the open & closed pull requests with specific label
hubot pr any <#label> <YYYY-MM-DD>
hubot pr any all <#label> <YYYY-MM-DD>
Lists all the open & closed pull requests updated with specific label and date
hubot pr any <#label> <YYYY-MM-DD..YYYY-MM-DD>
hubot pr any all <#label> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open & closed pull requests updated with specific label and date range
hubot pr any <#text>
hubot pr any all <#text>
Lists all the open & closed pull requests with specific text
hubot pr any <#text> <YYYY-MM-DD>
hubot pr any all <#text> <YYYY-MM-DD>
Lists all the open & closed pull requests updated with specific text and date
hubot pr any <#text> <YYYY-MM-DD..YYYY-MM-DD>
hubot pr any all <#text> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open & closed pull requests updated with specific text and date range
hubot pr any <assignee> Lists all the open & closed pull requests assigned to a known github user
hubot pr any <assignee> <YYYY-MM-DD> Lists all the open & closed pull requests assigned to a known github user updated with specific date
hubot pr any <assignee> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open & closed pull requests assigned to a known github user updated with specific date range
hubot pr any <assignee> <#label> Lists all the open & closed pull requests with specific label assigned to a known github user
hubot pr any <assignee> <#label> <YYYY-MM-DD> Lists all the open & closed pull requests updated with specific label and date assigned to a known github user
hubot pr any <assignee> <#label> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open & closed pull requests updated with specific label and date assigned to a known github user
hubot pr any <assignee> <#text> Lists all the open & closed pull requests with specific text assigned to a known github user
hubot pr any <assignee> <#text> <YYYY-MM-DD> Lists all the open & closed pull requests updated with specific text and date assigned to a known github user
hubot pr any <assignee> <#text> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open & closed pull requests updated with specific text and date range assigned to a known github user
hubot pr closed
hubot pr closed all
Lists all the closed pull requests
hubot pr closed <YYYY-MM-DD>
hubot pr closed all <YYYY-MM-DD>
Lists all the closed pull requests with specific date
hubot pr closed <YYYY-MM-DD..YYYY-MM-DD>
hubot pr closed all <YYYY-MM-DD..YYYY-MM-DD>
Lists all the closed pull requests with specific date range
hubot pr closed <#label>
hubot pr closed all <#label>
Lists all the closed pull requests with specific label
hubot pr closed <#label> <YYYY-MM-DD>
hubot pr closed all <#label> <YYYY-MM-DD>
Lists all the closed pull requests with specific label and date
hubot pr closed <#label> <YYYY-MM-DD..YYYY-MM-DD>
hubot pr closed all <#label> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the closed pull requests with specific label and date range
hubot pr closed <“text”>
hubot pr closed all <“text”>
Lists all the closed pull requests with specific text
hubot pr closed <“text”> <YYYY-MM-DD>
hubot pr closed all <“text”> <YYYY-MM-DD>
Lists all the closed pull requests with specific text and date
hubot pr closed <“text”> <YYYY-MM-DD..YYYY-MM-DD>
hubot pr closed all <“text”> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the closed pull requests with specific text and date range
hubot pr closed <assignee> Lists all the closed pull requests assigned to a known github user
hubot pr closed <assignee> <YYYY-MM-DD> Lists all the closed pull requests assigned to a known github user with specific date
hubot pr closed <assignee> <YYYY-MM-DD..YYYY-MM-DD> Lists all the closed pull requests assigned to a known github user with specific date range
hubot pr closed <assignee> <#label> Lists all the closed pull requests with specific label assigned to a known github user
hubot pr closed <assignee> <#label> <YYYY-MM-DD> Lists all the closed pull requests with specific label assigned to a known github user with specific date
hubot pr closed <assignee> <#label> <YYYY-MM-DD..YYYY-MM-DD> Lists all the closed pull requests with specific label assigned to a known github user with specific date range
hubot pr closed <assignee> <“text”> Lists all the closed pull requests with specific text assigned to a known github user
hubot pr closed <assignee> <“text”> <YYYY-MM-DD> Lists all the closed pull requests with specific text assigned to a known github user with specific date
hubot pr closed <assignee> <“text”> <YYYY-MM-DD..YYYY-MM-DD> Lists all the closed pull requests with specific text assigned to a known github user with specific date range
hubot pr open
hubot pr open all
Lists all the open pull requests
hubot pr open <YYYY-MM-DD>
hubot pr open all <YYYY-MM-DD>
Lists all the open pull requests with specific date
hubot pr open <YYYY-MM-DD..YYYY-MM-DD>
hubot pr open all <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open pull requests with specific date range
hubot pr open <#label>
hubot pr open all <#label>
Lists all the open pull requests with specific label
hubot pr open <#label> <YYYY-MM-DD>
hubot pr open all <#label> <YYYY-MM-DD>
Lists all the open pull requests with specific label and date
hubot pr open <#label> <YYYY-MM-DD..YYYY-MM-DD>
hubot pr open all <#label> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open pull requests with specific label and date range
hubot pr open <“text”>
hubot pr open all <“text”>
Lists all the open pull requests with specific text
hubot pr open <“text”> <YYYY-MM-DD>
hubot pr open all <“text”> <YYYY-MM-DD>
Lists all the open pull requests with specific text and date
hubot pr open <“text”> <YYYY-MM-DD..YYYY-MM-DD>
hubot pr open all <“text”> <YYYY-MM-DD..YYYY-MM-DD>
Lists all the open pull requests with specific text and date range
hubot pr open <assignee> Lists all the open pull requests assigned to a known github user
hubot pr open <assignee> <YYYY-MM-DD> Lists all the open pull requests assigned to a known github user with specific date
hubot pr open <assignee> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open pull requests assigned to a known github user with specific date range
hubot pr open <assignee> <#label> Lists all the open pull requests with specific label assigned to a known user
hubot pr open <assignee> <#label> <YYYY-MM-DD> Lists all the open pull requests with specific label and date assigned to a known user
hubot pr open <assignee> <#label> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open pull requests with specific label and date range assigned to a known user
hubot pr open <assignee> <“text”> Lists all the open pull requests with specific text assigned to a known user
hubot pr open <assignee> <“text”> <YYYY-MM-DD> Lists all the open pull requests with specific text and date assigned to a known user
hubot pr open <assignee> <“text”> <YYYY-MM-DD..YYYY-MM-DD> Lists all the open pull requests with specific text and date range assigned to a known user

Support

  • follow on Twitter

Blogs