Bharath Vissapragada created HBASE-23689:
--------------------------------------------

             Summary:  Bookmark for github PR to jira redirection
                 Key: HBASE-23689
                 URL: https://issues.apache.org/jira/browse/HBASE-23689
             Project: HBase
          Issue Type: Sub-task
          Components: tooling
    Affects Versions: master
            Reporter: Bharath Vissapragada
            Assignee: Bharath Vissapragada


Following is a simple js snippet that redirects from any HBase PR to its 
corresponding jira. Without this, one has to copy the jira ID from the PR, 
construct a jira URL manually and paste it in the browser URL bar. Saves a 
bunch of clicks.
{code:javascript}
javascript:location.href='https://issues.apache.org/jira/browse/'document.getElementsByClassName("js-issue-title")[0].innerHTML.match(/HBASE-\d/)[0];{code}
Particularly helpful for reviewers who'd like to read the jira contents often 
when reviewing a PR.

For chrome:
 - Right Click on the bookmarks bar
 - Click on Add page. Fill in the following details:
 Name: HBase jira redirect (or any other that you prefer)
 URL: – {{snippet from above}}--
 - Click Save

Now you should see "HBase jira redirect" (or any other name you gave) bookmark 
on the bar.
 Go to any Github PR, click on this button and it redirects to the 
corresponding jira.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to