-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add copy commit SHA1 button in commits list #17416
Conversation
Codecov Report
@@ Coverage Diff @@
## main #17416 +/- ##
==========================================
+ Coverage 45.16% 45.27% +0.11%
==========================================
Files 784 788 +4
Lines 88229 88440 +211
==========================================
+ Hits 39849 40043 +194
- Misses 41908 41922 +14
- Partials 6472 6475 +3
Continue to review full report at Codecov.
|
@@ -1057,6 +1057,9 @@ commits.search.tooltip = You can prefix keywords with "author:", "committer:", " | |||
commits.find = Search | |||
commits.search_all = All Branches | |||
commits.author = Author | |||
commits.copy_sha_text = Copy | |||
commits.copy_sha_success = SHA1 has been copied | |||
commits.copy_sha_error = Use ⌘C or Ctrl-C to copy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use the more generic Commit ID
instead of SHA
or SHA1
@@ -47,6 +47,16 @@ | |||
<span class="{{$class}}"> | |||
{{end}} | |||
<span class="shortsha">{{ShortSha .ID.String}}</span> | |||
<span class="clipboard" | |||
data-original="{{$.i18n.Tr "repo.commits.copy_sha_text"}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-original
has no effect now and shouldn't be used.
Replaced by |
Targeting Issue - #13816
Description - This will add a copy button next to the SHA1 commit text in the commit lists page
Screenshots
Copy Button
On Hover
After Hover