Bitbucket : commit links in PRs

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

2022/12/16のページです。最新版はこちら。

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
andrybak
評価
0 0 0
バージョン
12
作成日
2022/12/16
更新日
2022/12/16
大きさ
5.6KB
ライセンス
MIT
対象サイト

Bitbucket – add convenient links to commits

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 https://example.com by default. You have to manually change the URL in the "match" settings to the hostname of the Bitbucket server or servers that you use. This is due to restrictions on how browser extensions can match against URLs. See documentation of Firefox and Google Chrome for details.

Tampermonkey instructions

  1. Go to Dashboard in the extension menu
  2. Click "Edit" button in the line of the script that you've just installed
  3. Copy the value from @match field of the metadata
  4. Go to the tab "Settings"
  5. Click "Add..." under "User matches"
  6. Paste the copied value
  7. Replace the example domain with the domain of website you use
  8. Click "OK"