File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -173,7 +173,10 @@ <h3>Commit information</h3>
173173 </ script >
174174
175175 < script type ="text/javascript ">
176- $ . getJSON ( "https://ci.appveyor.com/api/projects/sharwell/Documentationanalyzers/artifacts/DocumentationAnalyzers.Status.json?branch=master&pr=false&stream=true&job=Configuration:%20Release" , function ( data ) {
176+ var urlParams = new URLSearchParams ( window . location . search ) ;
177+ var branch = urlParams . get ( 'branch' ) || 'master' ;
178+ var pr = urlParams . get ( 'pr' ) === 'true' ? 'true' : 'false' ;
179+ $ . getJSON ( `https://ci.appveyor.com/api/projects/sharwell/Documentationanalyzers/artifacts/DocumentationAnalyzers.Status.json?branch=${ branch } &pr=${ pr } &stream=true&job=Configuration:%20Release` , function ( data ) {
177180 $ ( "#renderedDiagnostics" ) . html ( $ . templates ( $ ( "#diagnostics" ) . html ( ) ) . render ( data ) ) ;
178181 $ ( "#renderedCommitInfo" ) . html ( $ . templates ( $ ( "#commitInfo" ) . html ( ) ) . render ( data . git ) ) ;
179182 } ) ;
You can’t perform that action at this time.
0 commit comments