Use Travis CI to automatically sync forked repos under a user or organization.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.config.yml
.gitignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

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.