A small tool for including Bitbucket commits in the contributions graph on GitHub.
Say you have some repositories on Bitbucket, e.g. for work. This program allows you to shadow you coding activity on Bitbucket to the contributions chart on your Activity overview on GitHub.
You do this by querying the Bitbucket workspace for commits made by you. The program then makes a shadow repository on GitHub. Here each Bitbucket repository is represented by a file, and each Bitbucket commit is reflected by the Bitbucket commit hash.
The Bitbucket hashes are added backwards in time so the match the point in time when the original commit was made on Bitbucket.
Note: Per default the shadow repository is made private to hide sensitive information. This means that the program depends on the GitHub settings to allow to show activity from both public and private repositories (read more).
$ git clone https://github.com/SV3A/bBucket2gHub.git
$ cd bBucket2gHub
$ npm install
Rename the file .env.example to .env and fill accordingly
For now the program works with username/password for Bitbucket and [Personal access tokens](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) for GitHub. So make sure to create such a token and add it to the `.env` file.
### 3) Run the program:
``` bash
$ node src/index.js
AZURE_MAIL=[FILL ACCORDINGLY]
AZURE_TOKEN=[FILL ACCORDINGLY]
AZURE_PROJECT=[FILL ACCORDINGLY]
AZURE_ORG=[FILL ACCORDINGLY]
$ node src/index_azure.js