- Access your bitbucket settings, and click on
ACCESS MANAGEMENT > OAuth
. - In
OAuth consumers
click onAdd consumer
button. - Fill
Name
, selectThis is a private consumer
checkbox. - Fill
Callback URL
with a valid url, likehttp://localhost
. - Mark permission
Pull requests - Read
, and save. - Back on
OAuth integrated applications
screen, click on your consumer created and copyKey
andSecret
tokens.
Set this environments variables on your system:
- BITBUCKET_GROUP: Slug name of you username or group.
- BITBUCKET_KEY: Key generated before.
- BITBUTCKET_SECRET: Secret generated before.
- INTERVAL_UPDATE: (Optional) Time in seconds to poll news PRs, default 60.
With npx:
$ npx prsync
Intalling and run:
$ npm install -g prsync
$ prsync