Skip to content

Tool for including Bitbucket commits in the contributions graph on GitHub

License

Notifications You must be signed in to change notification settings

SV3A/bBucket2gHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitbucket 2 GitHub Activity Sync

License: MIT

A small tool for including Bitbucket commits in the contributions graph on GitHub.

What does it do?

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.

Contribution graph 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).

Quick start:

1) Clone the repository and install:

$ git clone https://github.com/SV3A/bBucket2gHub.git
$ cd bBucket2gHub
$ npm install

2) Create an environment file with credentials:

Rename the file .env.example to .env and fill accordingly

For now the program works with username/password for Bitbucket and Personal access tokens for GitHub. So make sure to create such a token and add it to the .env file.

3) Run the program:

$ node src/index.js

Beta support for Azure DevOps

1) Add required environment variables

AZURE_MAIL=[FILL ACCORDINGLY]
AZURE_TOKEN=[FILL ACCORDINGLY]
AZURE_PROJECT=[FILL ACCORDINGLY]
AZURE_ORG=[FILL ACCORDINGLY]

2) Run the program

$ node src/index_azure.js

About

Tool for including Bitbucket commits in the contributions graph on GitHub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published