https://bugzilla.wikimedia.org/show_bug.cgi?id=36774

       Web browser: ---
             Bug #: 36774
           Summary: Auto-link SHA1 in Gerrit
           Product: Wikimedia
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Bugzilla
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Gerrit has an excellent search system that can find any commit by its SHA1
hash. By default it will redirect from the search to the changeset (merge
request), as it does with almost anything, redirects. Which is nice.

Also nice is that when a commit is merged to another branch, searching for the
SHA1 hash will show a simple search results list with both changesets that
requested a merge of that commit to a certain branch.

Anyway, https://gerrit.wikimedia.org/r/#/c/7265/ mentions 2 SHA1s. Would be
nice if those were auto-linked to gerrit's search.

gitweb does link them:

https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fcore.git;a=commit;h=a13e5e2cd087c04294cf6aef8b37ece202847171


Regex: /\b([a-f0-9]{40})\b/
Link: https://gerrit.wikimedia.org/r/#q,$1,n,z

(including the ",n,z" afterwards, not sure why Gerrit needs it, otherwise it
doesn't perform the search)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to