This project demonstrates how to sync one Team to another Team using the GitHub API.
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: