Bitbucket: copy commit reference

Adds a "Copy commit reference" link to every commit page on Bitbucket Cloud and Bitbucket Server.

目前為 2023-10-05 提交的版本,檢視 最新版本

作者
andrybak
評價
0 0 0
版本
5
建立日期
2023-07-12
更新日期
2023-10-05
尺寸
15.9 KB
授權條款
AGPL-3.0-only
腳本執行於

This script is obsolete. Please migrate to Git: copy commit reference.


Bitbucket: copy commit reference

Adds "Copy commit reference" link to every commit page. Commit reference is a commonly used format to refer to past commits. It looks like this:

1f0fc1d (pretty: implement 'reference' format, 2019-11-20)

The copied reference supports plain text and rich text editors, with clickable links to the commit, Jira issues, and Bitbucket pull requests.

This script supports both Bitbucket Server and 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-copy-commit-reference.user.js

See also

More user scripts and user styles for Jira, Bitbucket, and Confluence in set Atlassian Tweaks.

QingJ © 2025

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