Bitbucket : commit links in PRs

Adds convenience links in PRs of Bitbucket v7.6.+

目前為 2023-01-09 提交的版本,檢視 最新版本

作者
andrybak
評價
0 0 0
版本
13
建立日期
2022-12-16
更新日期
2023-01-09
尺寸
5.7 KB
授權條款
MIT
腳本執行於

Bitbucket – add convenient links to commits

[Screenshot of "PR links to commits"](https://greasyfork.s3.us-east-2.amazonaws.com/uyxtbenbjg1u2mkt6z006rt8lvzu)

This user script brings back convenient links to individual commit pages to the pull request's "Diff" tab, which was removed by Atlassian some time before Bitbucket version 7.6. The commit link includes a fancy tooltip, same as commit links on the "Commits" tab. Works for Bitbucket Server, wasn't tested for Bitbucket Cloud.

Instructions

The script uses @include rules to work on any domain that includes the word bitbucket. If your browser doesn't support @include (which might happen in the future when Chrome switches to Manifest V3 browser extensions) or your Bitbucket Server uses a domain which doesn't include the word bitbucket, you'll have to manually add your domain. Up-to-date instructions are at https://github.com/rybak/atlassian-tweaks#custom-domains

Source code

Source code and full history can be seen on GitHub: https://github.com/rybak/atlassian-tweaks/blob/main/bitbucket-pull-request-commit-links.user.js

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址