Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Auto Sync Forked Repos

Build Status

How to Run

On local or server:

git clone https://github.com/NoahDragon/update-forked-repo.git
cd update-forked-repo
npm install
npm start

On travis-ci:

Fork this repo, and add it to travis-ci. Set cron task or trigger it manually to run.

The .travis.yml file already includes in the repo.

Configuration

The app could be configurable in .config.yml.

org: ForkedReposBak # Repos under an organization
auth:
  token:            # Personalized token from Github 

The configuration could also set into environment variables:

GITHUB_REPO_FROM_ORG for the org. GITHUB_TOKEN for the token.

Caveats

  • The forked repos should never been edited or contained any conflict commit with the source repos.
  • Only support forked repos under a Github Org.
  • Need personal Github token to push repos.
  • Should not contains private repos.

About

Use Travis CI to automatically sync forked repos under a user or organization.

Resources

License

Releases

No releases published

Packages

No packages published