Generate pullrequest from bitbucket using OAuth2, automatically do a token behave on user behalf.
Provide a custom Rauth python package that work with bitbucket refresh token.
To get start, clone this repository. and create an empty folder for token.
Create a .env file to store bitbucket client_id and client_secret.
- go to bitbucket to create consumer app bitbucket
- install prerequisite -
pip -r install requirements - run
main.py, for the very first time, it will display an token authenticate link in the console. - copy the link, paste it in browser and copy the redirect url. url contain authentication code.
- paste the url back in the console.