This script is used to read all your contributions you've done on local repositories with git-standup and create a GitHub contribution activity for every commits that you're the author.
It does not copy content of the commit, to respect NDA and privacy it only list all commits SHA you've made and write it to a file. This is totally safe.
I have done this script because some contracts, projects, or business were not on GitHub as source control. I found it odd that some weeks or months were missing in my GitHub contributions activity as if I was not there.
Personally I'm not sure, but since private contributions can be showed and some used this to show work activity, why not.
I'm not sure either, but if it can help someone I'll be happy.
Hell yeah.
- git-standup
- Node
npm install -g sync-external-contributions
First, you'll need a git repository where the contributions will be synced.
Create it where you want it (ex: ~/external-contributions), run git init inside and push your initial commit with an empty file named COMMITS.
Create your repository on GitHub and add it as origin, origin will be automatically synced after each runs.
To sync every commits that you've done in ~/fake-project into ~/external-contributions:
sync-external-contributions --source ~/fake-project --destination ~/external-contributions
Options
--source string[] Source repositories to fetch commits
--destination string Destination repository to sync contributions into
--days number Specify the number of days back to include
--folder-depth Specify the number of subfolders to look for repos in source
--dry-run Will execute script without syncing
--force Force push to the destination (implicit with reset)
--reset Reset the destination repository
--silent Will not prompt
-h, --help
