Created
February 2, 2022 10:25
-
-
Save JaldertVicarious/e8294a9107049655f1a40756c040d8bd to your computer and use it in GitHub Desktop.
Bookmarklet to open Jenkins console for real-world PR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To install, make a bookmark and add the code below as the URL | |
// This only works when you are browing a real_world PR | |
// e.g. https://github.com/vicariousinc/real_world/pull/18545 | |
javascript:(function() { | |
const url = window.location.href; | |
let re = /pull\/(?<PR>[0-9]+)/; | |
let match = url.match(re); | |
const pr_id = match.groups["PR"]; | |
open('https://jenkins.corp.vicarious.com/job/vcrs/job/real_world/job/PR-' + pr_id).focus(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment