Sync the forked repos under an Org in Github. More details in this article.
How to Run
On local or server:
git clone https://github.com/NoahDragon/update-forked-repo.git
Fork this repo, and add it to travis-ci. Set cron task or trigger it manually to run.
.travis.yml file already includes in the repo.
The app could be configurable in
org: ForkedReposBak # Repos under an organization
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.
- 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.