It acts as a web hook. Set up web hook on Bitbucket and the activity will be transformed to Github activity
- Deploy this app to Heroku
- Setup Bitbucket 'POST' hook to post to the app
- When post receives, the app update the 'LOG' file content and commit to Github.
-
Create a new Personal Access Tokens from github
-
Create a github repo to recieve those commits from Bitbucket first
-
Update the ruby file to use the above repo name: https://github.com/hamxiaoz/b-2-g/blob/master/app.rb#L17
-
Deploy to Heroku
git clone # change REPO name and LOG_FILE name in app.rb hekrou create heroku config:add WELCOME_MSG=xxxxxxx heroku config:add ACCESS_TOKEN=xxxxxxx
-
Setup 'POST' hook in Bitbucket to your Heroku app:
xxxxx.herokuapp.com/commits