Giter Site home page Giter Site logo

gh-prt-jnks's Introduction

Description

Simple userscript that scans PR comments for the ones created by PRT bot and replaces the reported build number by the link to the actual jenkins build.

Setting up

  1. switch to advanced mode in your TamperMonkey settings (it allows you to access and modify the Storage of the extension) TM_setup_1

  2. Navigate to script raw page and TamperMonkey should pop up with confirmation dialog to install the script

  3. With the userscript installed and enabled, navigate to any GH PR page (a page of a specific PR) Hit refresh (an initial settings should be seeded)

  4. Open TamperMonkey dashboard, click the installed script and navigate to the Storage tab

    TM_setup_2 TM_setup_3 (hit Reload button if you can't see the settings object)

  5. replace {JENKINS_URL} with url to your jenkins instance (including schema). Keep {PROJECT} unchanged as this is automatically expanded by the script. TM_setup_4

  6. If you wish to keep the failed items collapsed by default switch resultsLoadExpanded to 0

  7. Hit Save

  8. Navigate to the target PR page and Hit reload to rerun the script TM_setup_5

Known bugs and limitations

one needs to refresh the page for script to work (GH manipulates the existing DOM on navigation). GH does not seem to emit the pjax.end event anymore. This is currently affecting all GH userscripts.

gh-prt-jnks's People

Contributors

rplevka avatar

Watchers

 avatar

Forkers

lhellebr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.