Bitbucket recently released the new pull request "experience" (read: user interface). Sadly, the feature of commit approvers was removed from the new UI. This user script utilizes the Bitbucket API to add this feature again.
Visit this page and your TamperMonkey should prompt you to install the script.
To work with the API, you will need to provide the script with your username and an app password. You can create one
here. The script needs the scopes pullrequest
(read) which implies repository
(read) to work
correctly. The option bb_displayName
is used to determine if the approval was made by you or someone else (to show the
checkmark in either green or grey). As nick name and display name can be a bit confusing, you see your display name in
the reviewer list in the right side bar.
You can configure the script via the script's storage in the tampermonkey dashboard. Unfortunately, the tampermonkey developers decided that the storage tab may only appear if you configured tampermonkey to use advanced config mode. There is an illustrated step-by-step guide on stackoverflow on how to activate it.
Setting name | Description |
---|---|
bb_displayName | Determines if the approval was made by you or someone else. If you leave it unset, it shows every approval as grey checkmark. |
bb_username | Username required for the login, visible on your profile settings |
bb_appPassword | App password for the login, created here |
activationDelay | Delay in milliseconds before the script attempts to modify the page. |
removeEmptyTds | Adds a call which removes empty <td> elements from the table. Defaults to true. |
debugOutput | Enables the debug output with the tag [BBCA] on level debug . Defaults to false. |
The script supports auto-updates, however, when you edit a script via the TamperMonkey editor, the auto-update is deactivated automatically (to preserve your changes). So, if you had to tamper (heh) with the script and now want to receive updates again, make sure you checked the checkbox "Check for updates" on the script's settings page.