Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

yahoo/octosync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 ██████╗  ██████╗████████╗ ██████╗ ███████╗██╗   ██╗███╗   ██╗ ██████╗
██╔═══██╗██╔════╝╚══██╔══╝██╔═══██╗██╔════╝╚██╗ ██╔╝████╗  ██║██╔════╝
██║   ██║██║        ██║   ██║   ██║███████╗ ╚████╔╝ ██╔██╗ ██║██║     
██║   ██║██║        ██║   ██║   ██║╚════██║  ╚██╔╝  ██║╚██╗██║██║     
╚██████╔╝╚██████╗   ██║   ╚██████╔╝███████║   ██║   ██║ ╚████║╚██████╗
 ╚═════╝  ╚═════╝   ╚═╝    ╚═════╝ ╚══════╝   ╚═╝   ╚═╝  ╚═══╝ ╚═════╝
                                                                      

OctoSync

A ruby gem to sync repos from github.com to github enterprise (GHE).

Quick Start

Install via Rubygems or add to your Gemfile

gem "octosync", "~> 1.0"

Configuration

Create a config.yml file as follows:

github:
  settings:
    ghe_host: 'Your Github Enterprise Hostname'
    ghe_token: 'GHE Access Token'
    github_token: 'github.com Access Token'
    git_dir: 'Path to clone/fetch git repos'
      
  # Specify list of repos to be synced
  repos:
    - Orgname1/Reponame1
    - Orgname2/Reponame2

Usage

To sync between github.com to GHE, run following command

github_to_ghe_sync <path to config.yml>

Note

Current version do not support automatic org creation.

Make sure on your GHE instance you create appropriate org and add a user to it.

"Code licensed under the BSD license. See LICENSE.md file for terms."

About

A ruby gem to sync repos from github.com to github enterprise (GHE).

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages