-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbookmarklet-pr-links.html
29 lines (23 loc) · 2.51 KB
/
bookmarklet-pr-links.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
</head>
<body>
<article class="markdown-body entry-content container-lg" itemprop="text"><h1><a id="user-content-bookmarklets" class="anchor" aria-hidden="true" href="#bookmarklets"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>bookmarklets</h1>
<p>Productivity bookmarklets written in JavaScript</p>
<h2><a id="user-content-add-deployment-links-to-prs" class="anchor" aria-hidden="true" href="#add-deployment-links-to-prs"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Add deployment links to PRs</h2>
<p>This bookmarklet modifies the "Files changed" page of a pull request. For each markdown file, it adds links to the staging deployment of the file.</p>
<p>Three links are added: dotcom / GHES / AE</p>
<p><a target="_blank" rel="noopener noreferrer" href="/hubwriter/bookmarklets/blob/main/bookmarklet-pr-links.png"><img src="/hubwriter/bookmarklets/raw/main/bookmarklet-pr-links.png" alt="Links added to a PR" style="max-width:100%;"></a></p>
<p>Some of these links may get you a "page not found" if that version of the page doesn't exist (there's no way to tell from the information on the "Files changed" page).</p>
<p>To install the bookmarklet:</p>
<p>Drag this link onto your browser's Bookmarks/Favorites toolbar <a href="https://raw.githubusercontent.com/hubwriter/bookmarklets/main/bookmarklet-pr-links.js" rel="nofollow">PR links</a></p>
<p>To use the bookmarklet:</p>
<ol>
<li>Go to a PR that has a current staging deployment.</li>
<li>Go to the "Files changed" page.</li>
<li>Click the bookmarklet on your toolbar.</li>
<li>Click the appropriate link next to the file name.</li>
</ol>
</article>
</body>
</html>