Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 945 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 945 Bytes

Team-Sync

This project demonstrates how to sync one Team to another Team using the GitHub API.

Setup

Requires running your own Heroku cron daemon.

# clone the repo
$ git clone https://github.com/mtodd/team-sync
$ cd team-sync

# create a heroku app
heroku create
git push heroku master

# configure settings
# first generate a personal access token (with admin:org scope)
$ heroku config:set GITHUB_ACCESS_TOKEN=abcd1234
# set source team
$ heroku config:set SOURCE=myorg/source-team
# set target team(s)
$ heroku config:set TARGET=myorg/target-team

# configure cron task
$ heroku addons:add scheduler:standard
$ heroku addons:open scheduler

Schedule the rake sync task: