Skip to content

BaristaVentures/errand-boy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

errand-boy

A service to integrate GitHub and Pivotal Tracker events to your project management workflow.

Why another Tracker - GitHub integration?

TODO

Run it

Clone the repository and, in the root:

$ go get # Install the project's dependencies.
$ go build # Build the executable.
$ export PT_API_TOKEN=<your Tracker API token>
$ ./errand-boy [-p <port=8080>]

Config file

TODO: Needs revision.

Errand Boy requires a configuration file to know what Pivotal Tracker projects map to which repositories.

Notice: It's a bad practice to have auth tokens in plain text. Because of that, tracker_api_token and each repository token value should be names of environment variables that Errand Boy can access.

To use ssh, you need to add you public key to the other host's .ssh/authorized_keys file. This guide explains it rather simply.

For commands that git clone private repositories, it's probably a good idea to add your server's public key to your github account, so that no password is needed to clone the repository.

File example:

{
  "tracker_api_token": "PT_API_TOKEN",
  "projects": [
    {
      "tracker_id": 1401024,
      "repos": {
        "null-framework": {
          "token": "EB_GH_TOKEN",
          "host": "some.host.com",
          "port": 8080
          "commands": ["go build", "./awesome-repo"]
        }
      }
    }
  ]
}

Steps (TODO: add pics of the process)

GitHub:

  • In your repository's settings, under "Webhooks & services", add a new webhook to the GitHub repositories.
  • Enter <your Errand Boy URL>[:<port>]/hooks/repos/pr
  • Select "Let me select individual events." and tick the Pull Request checkbox.
  • Click on "Add webhook".

Pivotal Tracker

  • Go to your project's settings, and click on the "Integration" tab.
  • Under "Activity Webhook", enter <your Errand Boy URL>[:<port>]/hooks/tracker/activity.
  • Make sure "v5" is selected in the drop down.
  • Click on "ADD".

Scripts

build-sle: Builds an statically linked Errand Boy executable (you'll need it to run it inside an ACI).

build-aci: Builds an Errand Boy container image in ACI format. Usage: sudo BINARYDIR=<binary dir> BUILDDIR=<build dir> scripts/build-aci <version>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published