Apps

Github

Installation

You can set up these environment variables using the setenv command:

  • HUBOT_GITHUB_REPO - (Optional): If you want a default Github repo, then set this environment variable.
  • HUBOT_GITHUB_USER - (Optional): If you want a default Github user, then set this environment variable.
  • HUBOT_GITHUB_API - (Optional): If you want to use Github Enterprise, then set this environment variable.

Usage

Activity

  • github repo show <user/repo>: Shows you information about a repo

Example: @nestorbot: github repo show zerobotlabs/relax

Committers

  • github repo committers <user/repo>: Shows you all the committers for a repo
  • github repo top-committer <user/repo>: Shows you the top committer for a repo

Example: @nestorbot: github repo committers zerobotlabs/relax

Issues

  • github show [<limit> [of]] [<assignee>'s|my] [<label>] issues [for <user/repo>] [about <query>]: Shows open GitHub issues for repo.
  • github show issues for <user/repo>: List all issues for given repo
  • github show issues for <repo>: List all issues for given repo if HUBOT_GITHUB_USER configured
  • github show issues: Lists all issues if HUBOT_GITHUB_REPO is set

Example: @nestorbot show issues for zerobotlabs/relax. If you set your default user as "zerobotlabs" with @nestorbot: setenv HUBOT_GITHUB_USER=zerobotlabs then you can just say @nestorbot: show issues for relax.

Merges

  • github merge project_name/<head> into <base>: Merges the selected branches or SHA commits

Pull Requests

  • github show <user/repo> pulls [with <regular expression>]: Shows open pull requests for that project by filtering pull request's title.
  • github show <repo> pulls: Show open pulls for HUBOT_GITHUB_USER/, if HUBOT_GITHUB_USER is configured
  • github show org-pulls [for <organization>]: Show open pulls for all repositories of an organization, default is HUBOT_GITHUB_ORG

Example: @nestorbot show zerobotlabs/relax pulls. If you set your default user as "zerobotlabs" with @nestorbot: setenv HUBOT_GITHUB_USER=zerobotlabs then you can just say @nestorbot: show relax pulls.

Search

  • github search <user/repo> <query>: Search for in

Status

  • github status: Returns the current system status and timestamp.
  • github status last: Returns the last human communication, status, and timestamp.
  • github status messages: Returns the most recent human communications with status and timestamp.

Source

The source for this app is available at asknestor-apps/github.